標籤:oracle查看字元集和修改字元集 :查看資料庫伺服器的字元集:select userenv(‘language‘) from dual ;登陸用dba:停掉資料庫 :shutdown immediate; 啟動資料庫到mount狀態下 :STARTUP MOUNT;ALTER SESSION SET SQL_TRACE=TRUE; ALTER SYSTEM ENABLE RESTRICTED SESSION; ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
標籤:-- 1.查詢比7654工資要高的員工 select * from emp where sal>(select sal from emp where empno=7654); ---2.查詢最低工資的員工資訊 select * from emp where sal=(select min(sal) from emp); ------------查詢出,部門名稱,部門員工數,部門平均工資,部門最低收入的人員姓名,和最高收入的人員 select d.dname,t1.c,
標籤:一、代碼package com.sgcc.hjimport java.sql.DriverManagerimport org.apache.spark.rdd.JdbcRDDimport org.apache.spark.{SparkConf, SparkContext}/** * Created by user on 2016/6/17. */object JdbcTest { def main(args: Array[String]) { val conf = new
標籤:在Oracle中,用函數返回結果集有時候要用到,下面是demo:1234567create or replace type t_test as object(id integer,create_time date,object_name varchar2(60));create or replace type t_test_table as table of t_test;1.用數組的方式1234567891011121314151617181920create or replace
標籤:If you use a SET TRANSACTION statement, then it must be the first statement in your transaction. However, a transaction need not have a SET TRANSACTIONstatement.Syntaxset_transaction::= http://docs.oracle.com/cd/B2835
標籤:1.建立資料表空間create tablespace example_tablespace datafile ‘e:\****.dbf‘ size 10m reuse autoextend on next 1m maxsize unlimited; 2.建立使用者,指定資料表空間,暫存資料表空間create user username identified by password&
標籤:1.將表名和欄位名改為大寫 見-- http://www.cnblogs.com/wenboge/articles/4121331.html 2.將表名和欄位名改為小寫①改表名為小寫begin for c in (select table_name tn from user_tables where table_name <> lower(table_name)) loop begin execute