0
私はテーブル(@tbl)ランタイムを作成し、データベースからselectステートメントからデータを挿入しようとしています。 、私はこれまで何をしたかのように声明「CIDを選択する」など実行時にテーブルを作成し、データベースのselectステートメントから値を挿入するためのsqlクエリ
declare @tbl TABLE (
Item int
)
begin
insert into @tbl values select cid from tbl_custumer where cus_ph like '%'+'987'+'%'
select * from @tbl
end
は、複数のレコード
を返すです
これはthanx sir – sam5808