博客年龄:15年11个月
访问:?
文章:61篇

数据库操作6.5

2011-04-25 14:38 阅读(?)评论(0)

1、使用union运算符组合两个表的数据

select 学生编号 as  编号,学生姓名 as 姓名 from tb_stuMark07 where 高数>85

union

select 编号,姓名 from tb_stuScore09 where 高数>85

2、使用union all 保留重复行

Select * from tb_nemployee09 union all

select * from tb_nemployee09

2、使用select语句复制表的结构

语法格式:

Select * into destion_table from source_table where 1<>1

备注:destion_table是指目的表名称,source_table是指源表名称

3、使用select语句复制表的内容

Select *  into destion_table from source_table

 

   阅读(?)评论(0)
上一篇: 数据库操作7.1 下一篇:数据库操作6.4
 
表  情:
加载中...
 

请各位遵纪守法并注意语言文明