SQL databases

1 Conversation

SQL is an acronym for Standard Query Language, a standardised language for obtaining information from relational databases.


Here are two extremely useful resources:

MySQL a free SQL-compatible relational database.
Beginner's guide to SQL this is an introduction provided by a student on the wwweb, and it is very helpful.


below is some sample SQL code to give you an idea of what the SQL is/does:(note: all SQL reserved words are written in capital letters here for clarity)

CREATE TABLE mytable (itemid INTEGER, itemname CHAR(30), description CHAR(70), creationdate DATE)


this will create a new table with a column for an item id, name, description and date of creation.



INSERT INTO mytable VALUES (32,"scooter","two wheeled, foot powered conveyance.","2000-12-12")


this would enter the specified information (in parenthesis) into a new record in the table (which we have previously created(above)) named 'mytable'.



SELECT * FROM mytable


this will obtain a list of all records contained in the table 'mytable'.




Bookmark on your Personal Space


Conversations About This Entry

Entry

A551080

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Written and Edited by

References

External Links

Not Panicking Ltd is not responsible for the content of external internet sites

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more