MYSQL数据库过滤问题 在mysql中,show tables是将所有数据库下的表显示出来,其中有一些是系统表,我应该如何操作,才能够只显示我自己建立的表,谢谢高手回答 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from information_schema.tables where table_schema='XXX' and table_type='base table' mysql> select table_name from information_schema.tables where table_type='BASE TABLE'; table_schema='XXX' and table_type='base table',这两个地方应该写什么, 你不是要查询所有库下的用户表么?》只要使用where table_type='BASE TABLE' 这个限定条件就好了 'base table' 就是表示用户表 不用改 直接复制上去执行吧 table_name--------------------------- t1 columns_priv db event func general_log help_category help_keyword help_relation help_topic host ndb_binlog_index plugin proc procs_priv servers slow_log tables_priv time_zone time_zone_leap_second time_zone_name time_zone_transition time_zone_transition_type user a dsf LZ明显是把表建在MYSQL 那个库里去了.... 不是啊,是在usertest里面,我就想显示所有我自己建立的表,不显示系统自己带的 o ..这个 table_type 的base table 表示是基本表~ 现在电脑中有information_schma,myfirst,mysql,test,usertest,有这几个数据库,我如何判定那些是我自己添加的,哪些是系统自带的? information_schma,mysql,test是安装完之后默认自带的。 系统自带的只有mysqlinformation_schema这两个。另外大部分情况下,系统还会自动创建一个test,但这个你可以删除 select table_name from information_schema.tables where table_type='BASE TABLE' and table_schema='YourDatabaseName';把YourDatabaseName换成你要查的数据库的名字,这样就会查出该数据库下所有的你建的表。 求一个简单SQL 来看看 解决就马上结贴 cluster数据节点不能启动的问题 用wamp安装后,不知道mysql的默认密码是什么,请各位高手解救 谁知道怎么在MySQL中直接存储bmp图片? (在线等)如何将mysql的数据库导出到excel mysql_real_connect中写localhost能连上,但是写我本地的ip就不行了,为什么 关于linux下mysql的安装问题 哪里能下载postgresql 7.0以上版本的win版?100分!! 求助mysql配置 数据库里面查询关联所有字段很快,查询单独字段很慢 安装发现失败 问个sending data问题
where table_schema='XXX' and table_type='base table'
mysql> select table_name from information_schema.tables where table_type='BASE TABLE';
你不是要查询所有库下的用户表么?》只要使用where table_type='BASE TABLE' 这个限定条件就好了
'base table' 就是表示用户表 不用改 直接复制上去执行吧
---------------------------
t1
columns_priv
db
event
func
general_log
help_category
help_keyword
help_relation
help_topic
host
ndb_binlog_index
plugin
proc
procs_priv
servers
slow_log
tables_priv
time_zone
time_zone_leap_second
time_zone_name
time_zone_transition
time_zone_transition_type
user
a
dsf
mysql
information_schema这两个。另外大部分情况下,系统还会自动创建一个test,但这个你可以删除
把YourDatabaseName换成你要查的数据库的名字,这样就会查出该数据库下所有的你建的表。