You are on page 1of 1
|_cheatsheet html CHAR(n) CHARACTER(n) VARCHAR2(n) NUMBER NUMBER(p,s) DATE TIME BLOB cLoB NCLOB BFILE RAW/LONG RAW to_char(x) to_number(x) ‘to_date(x) to_multi_byte() to_single_byte() chartorowid(x) rowidtochar(x) hextoraw(x) rawtohex(x) AND OR NOT BETWEEN IN uke NULL/NOT NULL [CONSTRAINT UNIQUE ( CREATE TABLE part Cheracter string of maximum length n, ( & negative equality tests. Boolean operations. SELECT emp_id, name, dept_no FROM epmployee WHEREemp_id BEWTEENI 43 SELECT emp_id, name, dept_no FROM epmployee WHERE emp_id IN (1,2,3, Regexp match. % =n characters, _ = character, \ escapes. Constraints Allow/don't allow missing values. For candidate keys - ame>,.)] alternatives to primary key This is the key field for look INTO () VALUES ( list>, VARCHAR(25), ()); PRIMARY_KEY(part_number)); CREATE TABLE CREATE TABLE department (depart ment_number CHAR(4) ( J, PRIMARY_KEY, % departmeni_name VARCHAR2(10): DROP TABLE DROP TABLE pelete table from database, Changing Tables. PRIMARY_KEY ()); column. employee mepeeTagte caesar Abb 7 ” " (departme ALTER TABLE SUM FOREIGN_KEY() DELETE ¢ foriegn_table_name() integrity [ON DELETE CASCADE}); rows in ta Modit INSERT g and deleting rows INSERT INTO employee (employee_number, employee_nam salary) 3 VALUES ('7092', ‘FORD’, 175,66); UPDATE UPDATE wine_list SET note = "Ideal as an aperitit WHERE wine_name = 'Ch.Haut-Ria 12/11/12 10:49

You might also like