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 郭 弈楠 阅读(152) 评论(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 郭 弈楠 阅读(112) 评论(0) 推荐(0) 编辑


Copyright © 2024 郭 弈楠
Powered by .NET 8.0 on Kubernetes