查看已存在的数据库 show databases;创建数据库并查看 create database 数据库名;删除数据库 drop database 数据库名;使用指定的数据库 use 数据库名;查看数据库中的表 show tables;创建表 create tables 表名;查看表结构 desc...
分类:
数据库 时间:
2015-04-27 18:15:11
阅读次数:
177
# font **加粗** *斜体* ~~横线~~ [title](http://127.0.0.1)#list 无须列表 *1 *2 *3 有须列表 1. 1 2. 2 3. 3#引用>这里是引用#table| Tables ...
分类:
其他好文 时间:
2015-04-26 21:00:05
阅读次数:
97
select user, table_name 表名, tablespace_name 表空间名, initial_extent 初始区长, next_extent 后续区长, min_extents 最小区数, max_extents 最大区数 from user_tables where t.....
分类:
数据库 时间:
2015-04-26 20:54:21
阅读次数:
171
ORACLE数据库除了可以保存永久表外,还可以建立临时表temporary tables。这些临时表用来保存一个会话SESSION的数据,或者保存在一个事务中需要的数据。当会话退出或者用户提交commit和回滚rollback事务的时候,临时表的数据自动清空,但是临时表的结构以及元数据还存储在用户的数据字典中。
分类:
1.会话级临时表
会话级临时表是指临时表中的数据只在会话生命周期之中存在,当用户退出会话结束的时候,Oracle自动清除临时表中数据。
2.事务级临时表
事务级临时表是指...
分类:
数据库 时间:
2015-04-26 16:47:12
阅读次数:
161
Bluefish is a GTK+ HTML editor for the experienced web designer. Its features include nice wizards for startup, tables and frames; a fully featured im...
分类:
Web程序 时间:
2015-04-26 16:39:53
阅读次数:
418
查询用户下的表:如果你的用户权限不是DBA:select*fromuser_tables;可以查询到当前用户所拥有的表。如果是DBA用户:select*fromdba_tables;
分类:
数据库 时间:
2015-04-26 01:49:00
阅读次数:
150
SHOW DATABASES返回可用数据库的一个列表,包含在这个列表中的可能是MySQL内部使用的数据库(如MySQL和information_schema)SHOW TABLES返回数据库内的表的列表SHOW COLUMNS FROM CUSTOMERS,DESCRIBE Customer返回表列...
分类:
数据库 时间:
2015-04-25 22:35:07
阅读次数:
249
有时需要将日期类型值转换成毫秒值,有时也要将毫秒值转换成日期,为了更方便,满足查询的需要。
现在,新建一张数据库表t_stu_info,并向表里插入数据
use test;
show tables;
create table t_stu_info(
id int not null primary key,
stu_name varchar(20),
...
分类:
数据库 时间:
2015-04-24 21:09:52
阅读次数:
209
原文地址:http://dev.mysql.com/doc/refman/5.7/en/memory-storage-engine.htmlTheMEMORYstorage engine (formerly known asHEAP) creates special-purpose tables w...
分类:
数据库 时间:
2015-04-23 19:12:12
阅读次数:
297
$sql = 'SHOW TABLES FROM dede_mrt'; //查询数据库中的所有表名$resault=mysql_query($sql,$con);while($a = mysql_fetch_array($resault)){//循环出表名$b = "select body fr.....
分类:
数据库 时间:
2015-04-23 13:00:34
阅读次数:
238