sql查询中的数据添加一行数据 select * from tablename where id=1union select 要添加的信息列表 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select col from tablename where id=1 union allselect 'value' select col1,col2,col3 from tablename where id=1union select 'col1','col2','col3' select * from tablename where id=1union allselect ... select * from tablename where id=1 union allselect 1,2,3.... select * from tablename where id=1 union allselect * from tablename2 where 条件 select * from tablename where id=1 union allselect '你想要添加的数据','',''...... 注意列数要相等。 得用union all来合并手动生成和检索出来的记录。 SQL查询语句求解! 求一条sql语句 清空数据日志回复数据库造成损害吗? 特急啊 感觉上很有难度,在SQL 2005 中的查讯 请大虾们进来看看!帮解决一下!谢谢了 求助:随机取一组连续的记录 sql server 一开机就停止服务,启动不了 SQL 问题,dawugui ,来看看 求SQL逻辑,C#+SQL Server 急急急!!!请问在多用户使用Pardox数据库时,该如何配置DBE,以及其他事项 想问下这个触发器为什么不起作用? 语句优化 急救!!存储过程:入参 数组如何分离并循环插入表中?
union all
select 'value'
select col1,col2,col3 from tablename where id=1
union select 'col1','col2','col3'
union all
select ...
select 1,2,3....
union all
select * from tablename2 where 条件
select * from tablename where id=1
union all
select '你想要添加的数据','',''......
注意列数要相等。