例如下面几行代码就完成了数据库和数据表的创建并插入7行数据:
create database test
use test
create table orderproduct(orderid char(11) primary key,productid varchar(255))
insert into orderproduct values
(20161116001,'D0020'),
(20161116035,'E0055'),
(20161101048,'A0035'),
(20161005321,'B0049'),
(20160901515,'C0038'),
(20160814525,'C0038,A0035,E0055'),
(20160714510,'D0020,B0049')
columns_privColumnprivilegesdbDatabase
privilegeseventEventsfuncUser
defined
functionsgeneral_logGeneral
loghelp_categoryhelp
categorieshelp_keywordhelp
keywordshelp_relationkeyword-topic
relationhelp_topichelp
topicshostHost
privileges
Merged
with
database
privilegesndb_binlog_indexpluginMySQL
pluginsprocStored
Proceduresprocs_privProcedure
privilegesserversMySQL
Foreign
Servers
tableslow_logSlow
logtables_privTable
privilegestime_zoneTime
zonestime_zone_leap_secondLeap
seconds
information
for
time
zonestime_zone_nameTime
zone
namestime_zone_transitionTime
zone
transitionstime_zone_transition_typeTime
zone
transition
typesuserUsers
and
global
privileges
对我有用[0]丢个板砖[0]引用举报管理TOPhuazb4815(huazb4815)等
级:
默认的有mysql,test这几个数据库。从mysql
5开始,
可以看到多了一个系统数据库information_schema
.
information_schema
存贮了其他所有数据库的信息。
information_schema是一个虚拟数据库,并不物理存在,在select的时候,从其他数据库获取相应的信息。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)