[Quote=引用 2 楼 zwm_wl 的回复:]
select top 2 * from tab1
union
select top 2 * from tab2
union
select top 2 * from tab3
这样行得通吗? 表结构好像要一样才可以。。
[/Quote]
提示错误:SELECT 子句中包含一个保留字、拼写错误或丢失的参数,或标点符号不正确。
我的语句是这样写的,看下对吗?
strsqlgzdt = "select top 2 * from tab_sjwj union select top 2 * from tab_bswj union select top 2 from tab_zcfg "