摘要: 1、主键和外键需要写在子段定义的最后面 2、主键:primary key(字段) 外键:(foreign key(字段) references 表(字段)) CREATE TABLE T_ Department (FId VARCHAR (20),FName VARCHAR (20),FLevel 阅读全文
posted @ 2021-04-25 11:14 雨過天晴oO 阅读(4557) 评论(0) 推荐(0)
摘要: select column_name,column_comment,column_data_type from information_schema.columns wehre table_name='表名称' and table_schema='数据库名称' information_schema. 阅读全文
posted @ 2021-04-25 10:13 雨過天晴oO 阅读(368) 评论(0) 推荐(0)