CREAT TABLE Students
(sid CHAR (20),
name CHAR (30),
login CHAR (20),
age INTEGER
GPA REAL)
(sid CHAR (20),
name CHAR (30),
login CHAR (20),
age INTEGER
GPA REAL)
Above information inserted in SQL by using the INSERT command. Students table statements write like the following:
INSERT
INTO Students (sid, name, login, age, GPA)
VALUES (53688, `Smith`, `smith@ee`, 18, 3.2)
INTO Students (sid, name, login, age, GPA)
VALUES (53688, `Smith`, `smith@ee`, 18, 3.2)
Then Students' table show like the following;
sid name login age GPA
Writing SQL statements needs time and practice, especially when you complex databases with many entities and queries.
Resources: Database Management Systems, 3rd Edition, by Ramakrishnan & Gehrke and Information Systems Today, 2nd Edition, by Jessup, Valacich & Wade
more infor visit: http://www.w3schools.com/SQL/sql_intro.asp
No comments:
Post a Comment