随笔分类 -  MySQL

摘要:select id,group_concat(re_id order by re_id separator ",") as re_idfrom tablenamegroup by idselect group_concat(list_name) from aa_list 阅读全文
posted @ 2017-03-24 08:44 除除 阅读(247) 评论(0) 推荐(0) 编辑
摘要:CREATE DEFINER=`mazey`@`%` PROCEDURE `sp_find_city_by_ip`(IN `in_visitor_ip` varchar(20),OUT `out_visitor_city` varchar(100))BEGIN select visitor_city 阅读全文
posted @ 2017-03-18 00:55 除除 阅读(272) 评论(0) 推荐(0) 编辑
摘要:MySQL中获取当前时间为now(),不同于sqlserver getdate()。 SQLServer转MySQL除变化top 1 -> limit 1之后报错: [Err] 1582 - Incorrect parameter count in the call to native functi 阅读全文
posted @ 2017-03-16 22:42 除除 阅读(9884) 评论(0) 推荐(0) 编辑
摘要:今天在查询一个字段时显示一直显示为0,可是表里明明有对应的数值。 搜索了一会发现是转义字符的问题,换成如下即可。 阅读全文
posted @ 2017-03-15 23:13 除除 阅读(2716) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示