2012年4月8日

摘要: SQL: COUNT FunctionThe COUNT function returns the number of rows in a query.The syntax for the COUNT function is:SELECT COUNT(expression)FROM tablesWHERE predicates;Note:The COUNT function will only count those records in which the field in the brackets is NOT NULL.For example, if you have the follo 阅读全文

posted @ 2012-04-08 13:18 郭 弈楠 阅读(164) 评论(0) 推荐(0)


2012年4月7日

摘要: 1.导出整个数据库mysqldump -u 用户名 -p --default-character-set=latin1 数据库名 > 导出的文件名(数据库默认编码是latin1)mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql2.导出一个表mysqldump -u 用户名 -p 数据库名 表名> 导出的文件名mysqldump -u wcnc -p smgp_apps_wcnc users> wcnc_users.sql3.导出一个数据库结构mysqldump -u wcnc -p -d –add-drop-table smg 阅读全文

posted @ 2012-04-07 11:10 郭 弈楠 阅读(115) 评论(0) 推荐(0)


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3