0
我正在尝试做一个表(@tbl)运行时并从数据库中插入select语句中的数据,因为我已经完成的工作是sql查询在运行时创建一个表,并从数据库的select语句中插入值
declare @tbl TABLE (
Item int
)
begin
insert into @tbl values select cid from tbl_custumer where cus_ph like '%'+'987'+'%'
select * from @tbl
end
为“选择CID”的语句返回的多条记录
这是解决thanx先生 – sam5808