Go to my github
摘要: select 'drop table '+name+';' from sys.tables declare c cursor forselect NAME from sysobjects where xtype='U' order by NAMEdeclare @t varchar(200)open 阅读全文
posted @ 2021-05-15 17:32 峡谷少爷 阅读(575) 评论(0) 推荐(0) 编辑
摘要: --创建一个游标 DECLARE my_cursor CURSOR FOR SELECT id, Bran_number, Bran_taxis FROM dbo.Base_Branch; --打开游标 OPEN my_cursor; DECLARE @id INT; DECLARE @Bran_t 阅读全文
posted @ 2021-05-15 17:30 峡谷少爷 阅读(424) 评论(0) 推荐(0) 编辑