P2 oracle SQL

258 57 0
P2 oracle SQL

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

ORACLE SQL GV Nguyễn Thị Hải Bình Khoa Cơng nghệ thông tin Đại học Giao thông Vận tải Type of SQL Statements Three essential categories • Data Definition Language (DDL) Statements • DDL allows you to create, modify, and remove database objects • Data Manipulation Language (DML) Statements • DML is used to manipulate data • SELECT • Is used to retrieve data from Oracle Database objects GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL*Plus Command Line GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL*Plus Command Line Start up SQL*Plus Command Line • Open command-line prompt (cmd) • Type: sqlplus sys/pwd as sysdba or sqlplus system/pwd Exit SQL*Plus • Type: exit GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL Developer Starting SQL Developer • Execute the “sqldeveloper.exe” program (May run from All Program) GV Nguyễn Thị Hải Bình Công nghệ Oracle SQL Tools SQL Developer Initial screen GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL Developer New connection dialog GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL Developer New connection dialog GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL Developer Three subpanels GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL Developer SQL toolbar Run Statement Run Script Commit Rollback To upper/lower/InitCap Clear SQL history Current connection GV Nguyễn Thị Hải Bình Công nghệ Oracle 10 Drop/Rename a Column GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 248 VIEW 249 CREATE VIEW Statement GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 250 Update View GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 251 Drop View GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 252 Question? • Can you update the data in an Oracle VIEW? • Does the Oracle View exist if the table is dropped from the database? GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 253 Formatting Columns Changing Column Headings GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 254 Formatting Columns Split Column Headings GV Nguyễn Thị Hải Bình Công nghệ Oracle 255 Formatting Columns Set the Underline Character SET UNDERLINE GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 256 Formatting Columns Change the Default Display Reset the column’s format GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 257 Formatting Columns Change the Default Display - Examples GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 258 Formatting Columns Change the Default Display - Examples GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 259 Formatting Columns Copy a Column’s Display Attributes GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 260 Formatting Columns Formatting SQL*Plus Reports https://docs.oracle.com/cd/B19306_01/server.102/b14 357/ch6.htm GV Nguyễn Thị Hải Bình Cơng nghệ Oracle 261 262 ... nghệ Oracle SQL Tools SQL Developer Initial screen GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL Developer New connection dialog GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL Developer... • Type: sqlplus sys/pwd as sysdba or sqlplus system/pwd Exit SQL* Plus • Type: exit GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL Developer Starting SQL Developer • Execute the “sqldeveloper.exe”... data from Oracle Database objects GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL* Plus Command Line GV Nguyễn Thị Hải Bình Cơng nghệ Oracle SQL Tools SQL* Plus Command Line Start up SQL* Plus

Ngày đăng: 03/11/2019, 18:14

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan