摘要:
aptitude install flashplugin-nonfreeif failCheck your settings in /etc/apt/sources.list.If this is a fresh install, most likely you don't have the contrib and non-free portions enabled yet. Look for the line that saysdeb http://ftp.XX.debian.org/debian/ wheezy mainand change it todeb http://ftp. 阅读全文
摘要:
DDL create table 创建表 alter table 修改表 drop table 删除表 truncate table 删除表中所有行 create index 创建索引 drop index 删除索引当执行DDL语句时,在每一条语句前后,oracle都将提交当前的事务。如果用户使用insert命令将记录插入到数据库后,执行了一条DDL语句(如create table),此时来自insert命令的数据将被提交到数据库。当DDL语句执行完成时,DDL语句会被自动提交,不能回滚。DMLinsert 将记录插入到数据库update 修改数据库的记录delete... 阅读全文
摘要:
看来有的人还是对schema的真正含义不太理解,现在我再次整理了一下,希望对大家有所帮助。我们先来看一下他们的定义:Aschemais a collection of database objects (used by a user.).Schema objectsare the logical structures that directly refer to the database’s data.Auseris a name defined in the database that can connect to and access objects.Schemas and usershe 阅读全文
摘要:
1、创建一张表g_test create table G_TEST ( ID NUMBER(12), C_DATE DATE ) 2、创建一个sequence create sequence G_SEQ minvalue 1 maxvalue 1024 start with 141 increment by 1 cache 20; 3、创建一个存储过程 create or replace procedure prc_g_test is begin insert into g_test values(g_seq.nextval,sysdate); end prc_g_test; vari... 阅读全文
摘要:
1、创建一张表g_test create table G_TEST ( ID NUMBER(12), C_DATE DATE ) 2、创建一个sequence create sequence G_SEQ minvalue 1 maxvalue 1024 start with 141 increment by 1 cache 20; 3、创建一个存储过程 create or replace procedure prc_g_test is begin insert into g_test values(g_seq.nextval,sysdate); end prc_g_test; vari... 阅读全文
摘要:
好吧,我就假设你两个表的数据结构相同吧create table TabA( address varchar2(50), press varchar2(50), city varchar2(50) )/create table TabB( address varchar2(50), press varchar2(50), city varchar2(50) )/create or replace trigger addDataafter insert on tabA begininsert into tabB select * from ... 阅读全文
摘要:
当用户要跨本地数据库,访问另外一个数据库表中的数据时,本地数据库中必须创建了远程数据库的dblink,通过dblink本地数据库可以像访问本地数据库一样访问远程数据库表中的数据。下面讲介绍如何在本地数据库中创建dblink. 创建dblink一般有两种方式,不过在创建dblink之前用户必须有创建dblink的权限。想知道有关dblink的权限,以sys用户登录到本地数据库: select * from user_sys_privs t where t.privilege like upper('%link%'); 1 SYS CREATE DATABASE LINK NO 2 阅读全文