mysql
zhangbin131421
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysql导入导出
参考: http://blog.youkuaiyun.com/lonesomer/archive/2006/05/04/708193.aspx实例:use mydb;select * from person into outfile "d:\data.txt";use otherdb;load data local infile "d:\data.txt" into table perso...原创 2010-07-09 01:09:08 · 104 阅读 · 0 评论 -
MYSQL 让查询结果按照指定顺序排序
表结构如下:mysql> select * from test;+—-+——-+| id | name |+—-+——-+| 1 | test1 || 2 | test2 || 3 | test3 || 4 | test4 || 5 | test5 |+—-+——-+执行以下SQL:mysql> select * from t...原创 2010-06-07 18:03:18 · 242 阅读 · 0 评论 -
Cannot convert value '0000-00-00 00:00:00' from column 19 to TIMESTAMP.
### Error querying database. Cause: java.sql.SQLException: Cannot convert value '0000-00-00 00:00:00' from column 19 to TIMESTAMP.### The error may involve com.dajie.core.user.dao.UserDao.getByUid-...原创 2011-02-14 12:06:40 · 182 阅读 · 0 评论 -
MySQL中group_concat函数
实例:SELECT GROUP_CONCAT(uid) FROM tb_user_email WHERE email IN ('qa201@xxx.com', 'qa202@xxx.com');结果集: 3076028,3076271 参考:MySQL中group_concat函数完整的语法如下:group_concat([DISTINCT] 要连接的...原创 2011-04-11 11:34:17 · 118 阅读 · 0 评论
分享