记一下样子. 明白它的应用场景. SELECT account_id, product_cd, cust_id, avail_balance FROM account WHERE open_emp_id <> (SELECT e.emp_id FROM employee AS e INNER JOIN branch AS b ON e.assigned_branch_id = b.brach_id WHERE e.title = 'Head Teller' AND b.city = 'Wobu
oracle教程:PLSQL常用方法汇总 在SQLPLUS下,实现中-英字符集转换alter session set nls_language='AMERICAN';alter session set nls_language='SIMPLIFIED CHINESE'; 主要知识点:一.有关表的操作1)建表 create table test as select * from dept; --从已知表复制数据和结构create table test as select * from dept w
Oracle在plsql中想要修改数据,有两种方式: a.使用rowid+点击锁图标,语句为: select t.*,rowid from T_BIC_PLY_MAIN t; b.使用for update,语句为: select t.* from T_BIC_PLY_MAIN t for update; b方式不太建议使用,for update会锁定表,如果这个锁定会话没有结束或你忘了进行提交,会影响到他人的修改或使用,尤其当你修改的表与其他多张表有关系时,更容易出现问题.详情请看for
首先安装Oracle,新建一个空的数据库mydb 从开始菜单运行cmd控制台:sqlplus "用户名/密码@数据库名 as sysdba"//例如sqlplus sys/admin@mydb as sysdba 使用SQL语句创建一个表空间 SQL> create tablespace globe nologging datafile 'D:\oracle\produa\globe.dbf' size 50M autoextend on next 50M permanent o
一.oracle10g安装,比较简单 1.去Oracle网站下载Vista版的Oracle:Oracle Database 10g Release 2 (10.2.0.4) for Microsoft Windows Vista x64 and Microsoft Windows Server 2008 x64 2.解压下载的安装文件10204_vista_w2k8_x64_production_db.zip 3.修改验证文件来支持windows7 修改\stage\prereq\db\refh
date:20140525auth:Jin platform :windows 一.服务端启动服务和创建账号# su - oracle$ lsnrctl start$ sqlplus / as sysdbaSQL> startupSQL> alter user sys identified by admin; #修改sys密码User altered.SQL> create user jin identified by com123; #创建用户SQL> grant connect