mysql常用信息函数 select version(); --当前数据库服务器版本信息 select database(); --当前使用的数据库 select current_user() 或 select user(); --当前用户 select curdate() select current_date --当前日期 select curtime() select current_time() --当前日期+时间 show tables; --显示所有的表 show databases; --显示所有的库 show create database db_; --查看标准建库语句 show create table tb_name; --查询标准建表语句 show full columns from studentinfo --查看表字段信息
原文:http://www.cnblogs.com/fqszywz/p/7588037.html