CREALE TABLE 表名 AS SELECT .......
摘要:1语法: create table 表名 as select .......... 2用处: 是复制表结构和表数据 3例子:(1*) SQL> create table tt as select * from dept;Table created.SQL> select * from dept; D
阅读全文
posted @
2016-09-29 23:20
沫小辉
阅读(583)
推荐(0)
关于Scott用户
摘要:一:典型安装的情况下包括Scott用户 ,默认情况下是锁定的状态,可以通过命令行来进行解锁; -:SQL> alter user scott account unlock identefied bu tiger;alter user scott account unlock identefied b
阅读全文
posted @
2016-09-25 20:34
沫小辉
阅读(282)
推荐(0)
distinct
摘要:1:select distinct department_id from employees; 2:select distinct department_id from employees where department_id is not null; 3:select distinct depa
阅读全文
posted @
2016-09-12 17:02
沫小辉
阅读(223)
推荐(0)
ORA-01081
摘要:sql> startup ORA-01081:cannot start already-running ORACLE-shut it down first 数据库已经启动了,首先你要关掉它,才可以启动数据库。 sql> shutdown immediate
阅读全文
posted @
2016-09-08 00:42
沫小辉
阅读(705)
推荐(0)
hr的用户
摘要:1 show user2 conn / as sysdba 3:alter user hr account unlock baocuo ORA-01017 1:conn / as sysdba 2: alter user hr identified by hr ; conn hr/hr 以上是关于h
阅读全文
posted @
2016-09-07 00:31
沫小辉
阅读(551)
推荐(0)