SELECT * FROM 表名limit 10000 into outfile '/tmp/dgguanwang1019.txt' fields terminated by " "
"mysql -u**** -p**** -e 'SELECT * FROM sdfdsf where username = wewefef' db>1.sql"
----------------判斷當前頁面是否包含在iframe中,如是從新加載當前頁面--------------------- //iframe包含 if (top.location != location) { top.location.href = location.href; } -----------------在文件每行後面追加新內容(linux)--------------------------------------------------- sed 's/$/要替換成的內容/' card.txt
-------------------------------------------------- 爲指定數據庫添加用戶 GRANT all ON 數據庫名.* to 用戶名@localhost identified by '密碼' 添加好用:flush privileges; grant all on webgame.* to cxuser@localhost identified by '123456'; update user set password = password('123456!') where user='cxuser'; flush privileges;
--------------------------eclipse 開發插件------------------------------ egit - http://download.eclipse.org/egit/updates -----------------------------建立一個git項目,在服務器端---------------------------------------------------- cd /home/git/ mkdir project_name.git cd project_name.git git --bare init cd .. chown -R git:git project.git ------------------------------------從模板表建立表--------------------------------------------- create table if not exists table_name like old_table_name;
------------------MySql中怎樣判斷某個字段的值是否是中文字符---------------- select * from table_name where col_name not regexp "[\u0391-\uFFE5]" PS:[\u0391-\uFFE5] 包括的範圍不單單是中文