摘要: -- 新增学生表 student IF object_id('student') IS NOT NULL DROP TABLE student; CREATE TABLE student ( id bigint NOT NULL IDENTITY(1,1) , name nvarchar(40) N 阅读全文
posted @ 2020-07-06 15:47 ヤBig、Bossづ 阅读(502) 评论(0) 推荐(0) 编辑
摘要: DECLARE num NUMBER; BEGIN -- 新增学生表 student SELECT COUNT (1) INTO num FROM cols WHERE table_name = UPPER ('student') ; IF num > 0 THEN EXECUTE IMMEDIAT 阅读全文
posted @ 2020-07-06 15:41 ヤBig、Bossづ 阅读(720) 评论(0) 推荐(0) 编辑
摘要: DROP PROCEDURE IF EXISTS proc_tempPro; CREATE PROCEDURE proc_tempPro () BEGIN START TRANSACTION; -- 学生表 DROP TABLE IF EXISTS student; CREATE TABLE stu 阅读全文
posted @ 2020-07-06 15:35 ヤBig、Bossづ 阅读(1055) 评论(0) 推荐(0) 编辑