Sqlserver 语句转成MySql语句
要转成一样的效果,用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
相关问答:
我以前安装了一次,后来卸载了,现在再安装的时候,提示错误:Error 1305.Error reading from file C:DOCUME~1\LOCALS~1\Temp\mysql_server.msi.Verify that the file exists and that you can access it.
可是我找 ......
在安装Java编译器的Eclipse的时候,对环境变量进行了配置,在安装MySQl的时候也要对环境变量进行配置;那么后面的配置会影响前面的Eclipse的配置吗?
请大家多指教~!谢谢!
不会把,我这都装了的 我系统里 还装了 ......
我对SQL SERVER和ACCESS比较熟,所以数据库的通用基础东西可以说都掌握的差不多了,我现在想要的就是以上两数据库的独特之处的介绍和应用介绍。
另外书最好对应最新版本 oracle是11g吧 10的也行;mysql是5.1吧
谢 ......
在数据库中有张表,有id,name两列,id 是主键,没有设置自增属性,在程序中取出这张表放入datatable,在这个datatable中插入一条记录,当更新数据库时提示id列不能为空,请问该怎么解决?
给它一个值!!主键不能为空 ......