mysql
zhangbin131421
这个作者很懒,什么都没留下…
展开
-
mysql导入导出
参考: http://blog.csdn.net/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 · 56 阅读 · 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 · 164 阅读 · 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 · 112 阅读 · 0 评论 -
MySQL中group_concat函数
实例 : SELECT GROUP_CONCAT(uid) FROM tb_user_email WHERE email IN ('[email protected]', '[email protected]'); 结果集: 3076028,3076271 参考 : MySQL中group_concat函数 完整的语法如下: group_concat([DISTINCT] 要连接的...原创 2011-04-11 11:34:17 · 65 阅读 · 0 评论