mysql to csv

 SELECT * FROM plugin_objects  INTO OUTFILE '/tmp/orders.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n';

OR

CREATE TABLE () (SELECT data FROM other_table ) ENGINE=CSV  ;

When you create a CSV table, the server creates a table format file in the database directory. The file begins with the table name and has an .frm extension. The storage engine also creates a data file. Its name begins with the table name and has a .CSV extension. The data file is a plain text file. When you store data into the table, the storage engine saves it into the data file in comma-separated values format.
Kategoria: 

command line memcache

telnet localhost 11211
stats
flush_all
get testkey
get 9e00dccb4b2400b412b4b3b671ce93ff

komendy

Usuwanie plików starszych niż 100 dni,

# find /var/log/ -iname '*.log' -mtime +100 -delete

Przesuwanie plików starszych niż 60 dni do innego katalogu:

# find /var/log/ -iname '*.log' -mtime +60 -exec mv '{}' /var/log/old/ ;
Kategoria: 

Parameter attributes

[CallerMemberName]
[CallerFilePath]
[CallerLineNumber]
 
 [CallerMemberName] string memberName = "",
 [CallerFilePath] string sourceFilePath = "",
[CallerLineNumber] int sourceLineNumber = 0
Kategoria: 

Strony

Subskrybuj Notatnik RSS