![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
Ual_Sadism
这个作者很懒,什么都没留下…
展开
-
mysql拼接字符串后插入
insert into tt_users (user_ID,crawl_date,User_URL) select followingUserName,crawlDate,concat('https://twitter.com/',followingUserName) from westpacfollowing;原创 2015-01-09 06:54:20 · 1472 阅读 · 0 评论 -
You can't specify target table 'tableName' for update in FROM clause
The Error "You can't specify target table for update in FROM clause" means in the one sql syntax, you cannot select some columns first from one table than update some columns in this table.In t原创 2015-01-09 06:56:08 · 639 阅读 · 0 评论 -
删除表中重复的数据
delete from tt_users where user_ID in ( select temp.user_ID from ( select user_ID from tt_users temp group by user_ID having co原创 2015-01-09 07:06:35 · 429 阅读 · 0 评论 -
删除一个表中与另一个表主键重复的数据 然后将俩个表的数据合并
bank表和commonwealth表有相同的表结构, tweetsID为主键删除一个表中与另一个表主键重复的数据 然后将俩个表的数据合并原创 2015-01-03 08:10:51 · 787 阅读 · 0 评论 -
提取一个表中的部分数据去建一个新的表
create table twitterdb.amp select distinct * from twitterdb.hailtweets where tweets like '% AMP %';原创 2015-01-03 08:31:02 · 1135 阅读 · 0 评论 -
group by 用法解析
group by 用法解析 group by语法可以根据给定数据列的每个成员对查询结果进行分组统计,最终得到一个分组汇总表。 SELECT子句中的列名必须为分组列或列函数。列函数对于GROUP BY子句定义的每个组各返回一个结果。 某个员工信息表结构和数据如下: id name dept salary edlevel hiredate 1 张三 开发部 2000转载 2015-07-06 12:34:23 · 2696 阅读 · 0 评论