标签:key info utf-8 ase _id sub drop 删除 char
CREATE TABLE mytable(
id varchar(40) NOT NULL default ‘‘,
userId varchar(40) NOT NULL default ‘‘
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE info_aaaa ENGINE=InnoDB;
show table status from [DBNAME];
CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
show create table user;
?useUnicode=true&characterEncoding=UTF-8
ALTER TABLE test_sub ADD CONSTRAINT main_id_cons FOREIGN KEY (main_id) REFERENCES test_main;
alter table tableName add columnName varchar(30)
alter table tableName alter column columnName varchar(4000)
EXEC sp_rename ‘tableName.column1‘ , ‘column2‘ (把表名为tableName的column1列名修改为column2)
alter table tableName drop column columnName
标签:key info utf-8 ase _id sub drop 删除 char
原文地址:http://www.cnblogs.com/lxl57610/p/7045371.html