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
相关问答:
我对SQL SERVER和ACCESS比较熟,所以数据库的通用基础东西可以说都掌握的差不多了,我现在想要的就是以上两数据库的独特之处的介绍和应用介绍。
另外书最好对应最新版本 oracle是11g吧 10的也行;mysql是5.1吧
谢 ......
我看了很多文章,写的太专业,能不能用大白话讲讲,就是怎么构建索引的,查的时候是怎么样的步骤,为什么比like快,是不是只要用contect,就一定会去查,比如
select * from table where contect('sdfsd',sdf) and ......
在数据库中有张表,有id,name两列,id 是主键,没有设置自增属性,在程序中取出这张表放入datatable,在这个datatable中插入一条记录,当更新数据库时提示id列不能为空,请问该怎么解决?
给它一个值!!主键不能为空 ......
想请教一个问题,ASP+mysql 会不会有连接默认时间。
我遇到一个问题:我在页面上按一个Save按钮,这个按钮是循环运行100篇 insert数据的存储过程。 asp代码应该没有错的,数据我是放在一个数组的如果我只保存50个是 ......