sqlserver语句改为mysql格式的语句,要求含义不要改变:
DROPTABLETB2011_PROTOCOL;SELECT'==================10.创建规约表:TB2011_PROTOCOL===========...
DROP TABLE TB2011_PROTOCOL;
SELECT '==================10.创建规约表 :TB2011_PROTOCOL====================';
CREATE TABLE TB2011_PROTOCOL
(
F2011_PROTOCOLID TINYINT NOT NULL,
F2011_PROTOCOLNAME VARCHAR(24) NOT NULL,
F2011_PROTOCOLDESC VARCHAR(40) NULL,
F2011_PROTOCOLMODE TINYINT NOT NULL,
F2011_LIBNAME VARCHAR(24) NULL
);
ALTER TABLE TB2011_PROTOCOL WITH NOCHECK ADD
CONSTRAINT PK_TB2011_PROTOCOL PRIMARY KEY CLUSTERED
(
F2011_PROTOCOLID
) ON [PRIMARY] ;
GRANT SELECT ON TB2011_PROTOCOL TO PUBLIC;
GRANT INSERT ,UPDATE,DELETE ON TB2011_PROTOCOL TO KDSYSDB,KDDATADB; 展开
SELECT '==================10.创建规约表 :TB2011_PROTOCOL====================';
CREATE TABLE TB2011_PROTOCOL
(
F2011_PROTOCOLID TINYINT NOT NULL,
F2011_PROTOCOLNAME VARCHAR(24) NOT NULL,
F2011_PROTOCOLDESC VARCHAR(40) NULL,
F2011_PROTOCOLMODE TINYINT NOT NULL,
F2011_LIBNAME VARCHAR(24) NULL
);
ALTER TABLE TB2011_PROTOCOL WITH NOCHECK ADD
CONSTRAINT PK_TB2011_PROTOCOL PRIMARY KEY CLUSTERED
(
F2011_PROTOCOLID
) ON [PRIMARY] ;
GRANT SELECT ON TB2011_PROTOCOL TO PUBLIC;
GRANT INSERT ,UPDATE,DELETE ON TB2011_PROTOCOL TO KDSYSDB,KDDATADB; 展开
展开全部
SELECT '==================10.创建规约表 :TB2011_PROTOCOL====================';
CREATE TABLE TB2011_PROTOCOL( F2011_PROTOCOLID TINYINT NOT NULL, F2011_PROTOCOLNAME VARCHAR(24) NOT NULL, F2011_PROTOCOLDESC VARCHAR(40) NULL, F2011_PROTOCOLMODE TINYINT NOT NULL, F2011_LIBNAME VARCHAR(24) NULL);
ALTER TABLE TB2011_PROTOCOL WITH NOCHECK ADD CONSTRAINT PK_TB2011_PROTOCOL PRIMARY KEY CLUSTERED ( F2011_PROTOCOLID ) ON [PRIMARY] ;GRANT SELECT ON TB2011_PROTOCOL TO PUBLIC; GRANT INSERT ,UPDATE,DELETE ON TB2011_PROTOCOL TO KDSYSDB,KDDATADB;
sqlserver2008没有问题
追问
我知道,我是说转为Mysql语法格式,怎么弄?呵呵
追答
CREATE TABLE TB2011_PROTOCOL
(
F2011_PROTOCOLID TINYINT NOT NULL,
F2011_PROTOCOLNAME VARCHAR(24) NOT NULL,
F2011_PROTOCOLDESC VARCHAR(40) NULL,
F2011_PROTOCOLMODE INTINYT NOT NULL,
F2011_LIBNAME VARCHAR(24) NULL
);
ALTER TABLE TB2011_PROTOCOL WITH NOCHECK
ADD CONSTRAINT PK_TB2011_PROTOCOL
ADD PRIMARY KEY (F2011_PROTOCOLID) ;
GRANT SELECT ON TB2011_PROTOCOL TO PUBLIC;
GRANT INSERT ,UPDATE,DELETE ON TB2011_PROTOCOL TO KDSYSDB,KDDATADB;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询