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] 包括的范围不单单是中文