Oracle 10g 命令從點滴開始

來源:互聯網
上載者:User

1、解鎖一個使用者,如過在安裝資料庫的時候,沒有解鎖使用者,可在sqlplus中解鎖,如:

      首先使用sys登入,然後使用  alter user 使用者 account unlock;

2、表述一張表的結構:desc 表名     tip:varchar2()支援國際上任何國家的語言;

3、select  10*10 from dual; select sysdate from dual; dual這個是空表,用來計算使用。   雙引號用來儲存格式,Oracle會自動把小寫轉換成大寫,用雙引號就不會轉換了

4、總結select的文法:select deptno, max(sal) from emp

                                         where deptno >10

                                         group by deptno

                                         having max(sal) >1200

                                         order by deptno desc;

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.