摘要: 本贴主要摘录一些不常见的sql语句及收藏一些好的sql写法sql如何修改一个表的字段值等于另一个表的字段值update confer set confer.ybp=(select ybprand.ybpid from ybprand where confer.ybp=ybprand.pid )修改confer表中的ybp字段等于ybprand表中的ybpid (同时confer表的ybp等于ybprand表的pid)sql删除大数量的重复数据delete from test where name in(select t.name from test as tgroup by t.name .. 阅读全文
posted @ 2012-08-30 18:45 kuangkro 阅读(282) 评论(0) 推荐(0)