`
天使的左手
  • 浏览: 56274 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

insert into select or select into 复制表

    博客分类:
  • jdbc
阅读更多
insert into table_name(字段值1,字段列表2....) select 字段值1,字段值2... from another_table  
//这里another表是必须存在的,而且不能写values关键字  
select * into target_table from source_table;   
//此句要求目标表不存在,在插入时候自动创建  
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics