ORACLE:
create table _table_name(
column
column
memo varchar
);
comment on column _table_name
is
SQLSERVER:
create table _table_name(
column
column
memo varchar(
);
MYSQL:
create table `_table_name`
(
`column
`column
PRIMARY KEY (`column
)ENGINE=InnoDB DEFAULT CHARSET=gbk;
ORACLE:
alter table _table_name add/modify column_name varchar
alter table _table_name drop column column_name;
SQLSERVER:
alter table _table_name add column_name VARCHAR(
alter table _table_name alter column column_name varchar(
alter table _table_name drop column column_name;
MYSQL:
alter table _table_name add/modify column column_name varchar(
alter table _table_name drop `column_name`;
ORACLE:
alter table _table_name add constraint index_name primary key (column_name) using index tablespace URMSPK;
create index index_name$cl
drop index index_name;
SQLSERVER:
Alter table _table_name add primary key(column_name);
alter table _table_name add constraint index_name primary key CLUSTERED (column_name)
WITH (
PAD_INDEX = OFF
IGNORE_DUP_KEY = OFF
STATISTICS_NORECOMPUTE = OFF
ALLOW_ROW_LOCKS = ON
ALLOW_PAGE_LOCKS = ON)
ON URMSPK
go
CREATE UNIQUE NONCLUSTERED INDEX [index_name] ON [_table_name]
([ORGRANGE]
WITH (
PAD_INDEX = OFF
IGNORE_DUP_KEY = OFF
DROP_EXISTING = OFF
STATISTICS_NORECOMPUTE = OFF
SORT_IN_TEMPDB = OFF
ONLINE = OFF
ALLOW_ROW_LOCKS = ON
ALLOW_PAGE_LOCKS = ON)
ON [URMSIDX]
GO
drop index _table_name
MYSQL:
ALTER TABLE _table_name ADD INDEX index_name (APPID
ALTER TABLE _table_name ADD UNIQUE index_name (column_list);
ALTER TABLE _table_name ADD PRIMARY KEY index_name (column_list);
alter table _table_name drop index index_name;
ORACLE:
insert into _table_name (column_list) values (
SQLSERVER:
insert into _table_name (column_list) values (
MYSQL:
insert into UMFRAMESET (`column_list`) values (
ORACLE:
alter table leave rename to Leave
SQLSERVER:
EXEC sp_rename leave
MYSQL:
alter table `leave` RENAME to `leave
ORACLE:
drop table table_name;
SQLSERVER:
drop table table_name;
MYSQL:
drop table table_name
SQLSERVER:
exec sp_msforeachtable
SQLSERVER:
EXEC sp_rename
ORACLE:
delete (from) tablename where _column_name=?;
From:http://tw.wingwit.com/Article/program/Oracle/201311/19025.html