㈠ 在mysql里面怎么查看数据库里面有多少表
showtables即为显示当前数据库中所有的表。又如:
mysql>usemysql
Databasechanged
mysql>showtables;
+---------------------------+
|Tables_in_mysql|
+---------------------------+
|columns_priv|
|db|
|event|
|func|
|general_log|
|help_category|
|help_keyword|
|help_relation|
|help_topic|
|innodb_index_stats|
|innodb_table_stats|
|ndb_binlog_index|
|plugin|
|proc|
|procs_priv|
|proxies_priv|
|servers|
|slave_master_info|
|slave_relay_log_info|
|slave_worker_info|
|slow_log|
|tables_priv|
|time_zone|
|time_zone_leap_second|
|time_zone_name|
|time_zone_transition|
|time_zone_transition_type|
|user|
+---------------------------+
28rowsinset(0.05sec)
这个是显示“mysql”这个数据库中的所有的表,一共有28张。
㈡ oracle 查看表结构,表里的数据
1、首复先,我们打开PLSQL工具连接到制需要进行数据比对的ORACLE数据库。
㈢ MySQL数据库中用什么语句能列出某个数据表里的全部内容
select * from table_name(table_name为表明)
㈣ 数据库查询表里面的数据怎么查询
1.通过系统的“性能”来查看:
开始->管理工具->性能(或者是运行里面输入 mmc)然后通过
添加计数器添加 SQL 的常用统计(MSSQL General Statistics) 然后在下面列出的项目里面选择 用户连接(User Connection) 就可以时时查询到sql server数据库连接数了。
2.通过系统表来查询:
SELECT * FROM
[Master].[dbo].[] WHERE [DBID]
IN
(
SELECT
[DBID]
FROM
[Master].[dbo].[]
WHERE
NAME=’’
)
是需要查看的数据库,然后查询出来的行数,就是当前的sql server数据库连接数。不过里面还有一些别的状态可以做参考用。
或者使用以下查询语句:
select * fromwhere dbid in (select dbid fromwhere name=’MyDatabase’)