SQL référence rapide De W3Schools


référence rapide De W3Schools

Instruction SQLSyntaxe
ET / OUSELECT column_name (s)
FROM table_name
WHERE
ET | OU condition
ALTER TABLEALTER TABLE nom_table
ADD nom_colonne type_donnéesou
ALTER TABLE nom_table
DROP COLUMN nom_colonne
AS (alias)SELECT column_name AS alias_colonne
FROM nom_de_tableou
SELECT nom_colonne
FROM table_name AS table_alias
ENTRESELECT column_name (s)
FROM table_name
WHERE column_name
ENTRE valeur1 et valeur2
CREATE DATABASECREATE DATABASE database_name
CREATE TABLECREATE TABLE nom_table
(
colonne 1 data_type,
column_name2 data_type,
column_name2 data_type,
...
)
CREATE INDEXCREATE INDEX nom_index
ON nom_table (nom_colonne)ou
CREATE UNIQUE INDEX nom_index
ON nom_table (nom_colonne)
CREATE VIEWCREATE VIEW view_name AS
SELECT column_name (s)
FROM table_name
WHERE condition
SUPPRIMERDELETE FROM table_name
WHERE some_column = some_valueou
DELETE FROM table_name
Remarque: Supprime la table entière!)
DELETE * FROM table_name
Remarque: Supprime la table entière!)
DROP DATABASEDROP DATABASE database_name
DROP INDEXDROP INDEX table_name.index_name (SQL Server)
DROP INDEX nom_index ON nom_table (MS Access)
DROP INDEX nom_index (DB2/Oracle)
ALTER TABLE nom_table
DROP INDEX nom_index (MySQL)
DROP TABLEDROP TABLE nom_table
GROUP BYSELECT nom_colonne, aggregate_function (nom_colonne)
FROM table_name
WHERE valeur column_name opérateur
GROUP BY nom_colonne
AYANTSELECT nom_colonne, aggregate_function (nom_colonne)
FROM table_name
WHERE valeur column_name opérateur
GROUP BY nom_colonne
aggregate_function opérateur de valeur HAVING (nom_colonne)
ENSELECT column_name (s)
FROM table_name
WHERE column_name
IN (valeur1, valeur2, ..)
INSERT INTOINSERT INTO nom_table
VALUES (valeur1, valeur2, valeur3, ....)ou
INSERT INTO nom_table
(colonne1, colonne 2, colonne 3, ...)
VALUES (valeur1, valeur2, valeur3, ....)
INNER JOINSELECT column_name (s)
DE table_name1
INNER JOIN table_name2
SUR table_name1.column_name = table_name2.column_name
LEFT JOINSELECT column_name (s)
DE table_name1
LEFT JOIN table_name2
SUR table_name1.column_name = table_name2.column_name
RIGHT JOINSELECT column_name (s)
DE table_name1
RIGHT JOIN table_name2
SUR table_name1.column_name = table_name2.column_name
FULL JOINSELECT column_name (s)
table_name1 DE
FULL JOIN table_name2
SUR table_name1.column_name table_name2.column_name =
COMMESELECT column_name (s)
FROM table_name
WHERE column_name modèle LIKE
ORDER BYSELECT column_name (s)
FROM table_name
ORDER BY nom_colonne [ASC | DESC]
SELECTSELECT column_name (s)
FROM table_name
SELECT *SELECT *
FROM table_name
SELECT DISTINCTSELECT DISTINCT column_name (s)
FROM table_name
SELECT INTOSELECT *
INTO new_table_name [EN externaldatabase]
DE old_table_nameou
SELECT column_name (s)
EN new_table_name [EN externaldatabase]
DE old_table_name
SELECT TOPSELECT nombre TOP | column_name pour cent (s)
FROM table_name
TRUNCATE TABLETRUNCATE TABLE nom_table
UNIONSELECT column_name (s) table_name1 DE
L'UNION
SELECT column_name (s) DE table_name2
UNION ALLSELECT column_name (s) DE table_name1
UNION ALL
SELECT column_name (s) DE table_name2
MISE À JOURMISE À JOUR nom_table
SET column1 = valeur, column2 = valeur, ...
OÙ some_column = some_value
SELECT column_name (s)
FROM table_name
WHERE opérateur valeur column_name

Source: http://www.w3schools.com/sql/sql_quickref.asp

17 commentaires:

  1. Appreciate the recommendation. Let me try it out.
    Here is my webpage www.ncesc.com

    ReplyDelete
  2. Amazing! This blog looks just like my old one! It's on a totally different subject but it has pretty much the same layout and design. Outstanding choice of colors!
    Check out my blog post :: click the following internet site

    ReplyDelete
  3. Amazing! This blog looks just like my old one!
    It's on a totally different subject but it has pretty much the same layout and design. Outstanding choice of colors!
    My website: click the following internet site

    ReplyDelete
  4. Hello! I've been following your weblog for a long time now and finally got the bravery to go ahead and give you a shout out from New Caney Texas! Just wanted to tell you keep up the good work!
    Feel free to surf my website : visit this website

    ReplyDelete
  5. I do not even know how I ended up here, but I thought this post was good.
    I do not know who you are but definitely you're going to a famous blogger if you aren't already
    ;) Cheers!

    my webpage; Shabby Chic Moebel Karlsruhe

    ReplyDelete
  6. Great blog! Do you have any hints for aspiring writers?
    I'm planning to start my own blog soon but I'm a little lost on everything.
    Would you advise starting with a free platform
    like Wordpress or go for a paid option? There
    are so many choices out there that I'm completely overwhelmed .. Any ideas? Thank you!

    my blog; increase twitter followers

    ReplyDelete
  7. Hello there, I found your site via Google even as searching
    for a similar topic, your web site came up, it seems to be good.
    I've bookmarked it in my google bookmarks.
    Hi there, just turned into alert to your weblog thru Google, and located that it is really informative. I am gonna be careful for brussels. I will appreciate if you happen to proceed this in future. A lot of people shall be benefited from your writing. Cheers!

    my web blog - get twitter followers

    ReplyDelete
  8. Everyone loves it when individuals get together and share views.
    Great site, keep it up!

    my weblog: Arabic Books

    ReplyDelete
  9. Wonderful website. Lots of useful info here. I'm sending it to some friends ans additionally sharing in delicious. And obviously, thank you in your sweat!

    Also visit my web-site; massage blowjob

    ReplyDelete
  10. Hi there to every one, the contents existing at this site are actually remarkable
    for people knowledge, well, keep up the nice
    work fellows.

    Look into my web page :: black sex

    ReplyDelete
  11. all the time i used to read smaller content which as well clear their motive, and that is also happening with this paragraph which I am reading
    now.

    Also visit my webpage :: sexygirlchat.net

    ReplyDelete
  12. It's an remarkable paragraph for all the internet users; they will get advantage from it I am sure.

    Also visit my web site; www.cuteteenporn.net

    ReplyDelete
  13. Wow, that's what I was looking for, what a stuff! present here at this weblog, thanks admin of this website.

    Look into my web site :: xxxvideofix.com

    ReplyDelete
  14. My partner and I stumbled over here by a different web address and thought I might check things out.
    I like what I see so i am just following you. Look
    forward to going over your web page for a second time.


    My page http://www.babesflick.com/video/17668/blowjob-footjob-handjob.html

    ReplyDelete
  15. I have read so many content on the topic of the blogger lovers but
    this piece of writing is truly a good article, keep it up.


    Also visit my webpage: http://www.wildpartygirls.org

    ReplyDelete
  16. Nice post. I learn something new and challenging
    on sites I stumbleupon every day. It will always be interesting to read content from other
    authors and use a little something from their websites.


    Review my web site: http://www.xxxvideofix.com/ *http://www.tube8.su/blog/8208/cutting-edge-sex-ebook-reveal-how-one-can-rule-the-sex-marketplace*

    ReplyDelete

HELLO VISITORS THANKS FOR YOUR VISIT AND COMMENT