编写脚本提示: 错误的语法:"create view必须是批处理中仅有的语句" FROM sys.views WHERE name = 'v_CS_UserRoleNames' ) BEGIN CREATE VIEW v_CS_UserRoleNames AS SELECT c.UserID AS ur_UserID , c.LoginID AS ur_LoginID , c.FullName AS ur_FullName , c.[Status] AS ur_Status , c.Z
MySQL 支持批处理的模式运行一批SQL语句,以下的样例就是实验MySQL怎样在windows下批处理运行SQL语句. create table test(id int,name varchar(20)); insert into test values(1,'watson'); batchfile.txt里包括以下的一些SQL 语句,此文件放在windows系统的c:/batchmysql/batchfile.txt insert into test select * from test;