1 -- 创建表book的Transact-SQL语句: 2 create database
test01 3 create table test01.dbo.book( 4 book_id nchar(6) not null, 5 book_name
nchar(30) null, ...
分类:
数据库 时间:
2014-06-12 18:13:07
阅读次数:
640
创建表CREATE TABLE pokes (foo INT, bar
STRING);创建表并创建索引字段dsCREATE TABLE invites (foo INT, bar STRING) PARTITIONED BY
(ds STRING);显示所有表SHOW TABLES;按正条件(正则...
分类:
其他好文 时间:
2014-06-11 23:10:11
阅读次数:
299
create user frame identified by tiger;grant create
session to frame;grant create table to frame;grant create tablespace to
frame;grant create view to ...
分类:
数据库 时间:
2014-06-11 13:00:15
阅读次数:
283
继续上一节初始ASP.NET MVC4,继续深入学习,感受了一下微软的MVC4+EF5(EntityFramework5)框架的强大,能够高效的开发出网站应用开发系统,下面就看一下如何用MVC4+EF5来实现数据的读取。实现效果操作步骤1.创建数据库--创建表格--
Create table News
(
id int identity(1,1) primary key,
NewsTitle...
分类:
Web程序 时间:
2014-06-11 00:53:12
阅读次数:
286
场景:修改已有数据的列宽时,提示“阻止保存要求重新创建表的更改”。解决:工具-〉选项-〉左侧有个 设计器-〉表设计器和数据库设计器 ->
阻止保存要求重新创建表的更改(右侧) 把钩去掉即可。参考:http://www.jb51.net/article/30416.htm
分类:
数据库 时间:
2014-06-10 13:17:20
阅读次数:
212
--子增长的插入 /*创建表*/ create table teacher ( id int
identity(1,1) primary key not null, name varchar(20) ) select * from
teacher/*关闭自增长*/SET IDE...
分类:
数据库 时间:
2014-06-10 12:21:35
阅读次数:
243
CREATE [UNDO] TABLESPACE tablespace_name
[DATAFILE datefile_spec1 [,datefile_spec2] ......
[{MININUM EXTENT integer [k|m]
|BLOCKSIZE integer [k]
|logging clause | FORCE LOGGING...
分类:
数据库 时间:
2014-06-10 06:13:58
阅读次数:
282
建表前如何判断表是否存在呢,因为table是不支持replace的。下面的sql能帮到你。create前先判断表是否存在。例如,如果存在则drop掉那个表。当然你也可以定义自己的操作。 declare
v_cnt Number;
begin
select count(*) into v_cnt from user_tables where upper(table_name) ...
分类:
数据库 时间:
2014-06-08 15:42:00
阅读次数:
329
18.4、Restoring Datafiles and Archived Redo Logs
如果介质失败损坏一个或多个数据文件,恢复损坏的文件前必须还原数据文件。如果还原的位置不是原始位置,必须在控制文件显示数据文件的新位置。
在裸设备上还原数据文件的过程和在文件系统上是相同的。
模拟1、在testtbs01中创建表,插入数据,然后切换日志,备份归档日志,testtbs01的某个数据文件...
分类:
数据库 时间:
2014-06-07 16:14:03
阅读次数:
269