Sqlserver 语句转成MySql语句

weepping 2009-11-26 10:09:58
要转成一样的效果,用powerdesigner怎么转?能转吗?

create table publishers (
publisherID int identity,
publisherName varchar (30) NOT NULL,
constraint pk_publishers primary key (publisherID)
)
;
create table authors (
authorID int identity,
firstName varchar (20) NOT NULL,
lastName varchar (30) NOT NULL,
constraint pk_authors primary key (authorID)
)
;
create table titles (
isbn varchar (20) NOT NULL,
title varchar (100) NOT NULL,
editionNumber int NOT NULL,
copyright varchar (4) NOT NULL,
publisherID int NOT NULL,
imageFile varchar (20) NOT NULL,
price float NOT NULL,
constraint fk_titles foreign key (publisherID)
references publishers (publisherID),
constraint pk_titles primary key (isbn)
)
;
create table authorISBN (
authorID int NOT NULL,
isbn varchar (20) NOT NULL,
constraint fk_authorISBN_1 foreign key (authorID)
references authors (authorID),
constraint fk_authorISBN_2 foreign key (isbn)
references titles (isbn)
)
;
create table bookusers
(
userId numeric identity,
account varchar(20) not null,
password varchar(20) not null,
name varchar(20) not null,
createTime datetime not null,
constraint PK_BOOKUSERS primary key (userId)
);
...全文
107 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

34,590

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧