随笔分类 -  Database

[ZT]精妙SQL语句
摘要:说明:复制表(只复制结构,源表名:a 新表名:b) SQL: select * into b from a where 11 说明:拷贝表(拷贝数据,源表名:a 目标表名:b) SQL: insert into b(a, b, c) select d,e,f from b; 说明:显示文章、提交人和最后回复时间 SQL: select a.title,a.username,b.adddate from table a,(select max(adddate) adddate from table where table.title=a.title) b 阅读全文
posted @ 2005-06-08 14:00 Miller 阅读(405) 评论(0) 推荐(0)