référence rapide De W3Schools
Instruction SQL | Syntaxe |
---|---|
ET / OU | SELECT column_name (s) FROM table_name WHERE ET | OU condition |
ALTER TABLE | ALTER 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 |
ENTRE | SELECT column_name (s) FROM table_name WHERE column_name ENTRE valeur1 et valeur2 |
CREATE DATABASE | CREATE DATABASE database_name |
CREATE TABLE | CREATE TABLE nom_table ( colonne 1 data_type, column_name2 data_type, column_name2 data_type, ... ) |
CREATE INDEX | CREATE INDEX nom_index ON nom_table (nom_colonne)ou CREATE UNIQUE INDEX nom_index ON nom_table (nom_colonne) |
CREATE VIEW | CREATE VIEW view_name AS SELECT column_name (s) FROM table_name WHERE condition |
SUPPRIMER | DELETE 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 DATABASE | DROP DATABASE database_name |
DROP INDEX | DROP 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 TABLE | DROP TABLE nom_table |
GROUP BY | SELECT nom_colonne, aggregate_function (nom_colonne) FROM table_name WHERE valeur column_name opérateur GROUP BY nom_colonne |
AYANT | SELECT 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) |
EN | SELECT column_name (s) FROM table_name WHERE column_name IN (valeur1, valeur2, ..) |
INSERT INTO | INSERT INTO nom_table VALUES (valeur1, valeur2, valeur3, ....)ou INSERT INTO nom_table (colonne1, colonne 2, colonne 3, ...) VALUES (valeur1, valeur2, valeur3, ....) |
INNER JOIN | SELECT column_name (s) DE table_name1 INNER JOIN table_name2 SUR table_name1.column_name = table_name2.column_name |
LEFT JOIN | SELECT column_name (s) DE table_name1 LEFT JOIN table_name2 SUR table_name1.column_name = table_name2.column_name |
RIGHT JOIN | SELECT column_name (s) DE table_name1 RIGHT JOIN table_name2 SUR table_name1.column_name = table_name2.column_name |
FULL JOIN | SELECT column_name (s) table_name1 DE FULL JOIN table_name2 SUR table_name1.column_name table_name2.column_name = |
COMME | SELECT column_name (s) FROM table_name WHERE column_name modèle LIKE |
ORDER BY | SELECT column_name (s) FROM table_name ORDER BY nom_colonne [ASC | DESC] |
SELECT | SELECT column_name (s) FROM table_name |
SELECT * | SELECT * FROM table_name |
SELECT DISTINCT | SELECT DISTINCT column_name (s) FROM table_name |
SELECT INTO | SELECT * 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 TOP | SELECT nombre TOP | column_name pour cent (s) FROM table_name |
TRUNCATE TABLE | TRUNCATE TABLE nom_table |
UNION | SELECT column_name (s) table_name1 DE L'UNION SELECT column_name (s) DE table_name2 |
UNION ALL | SELECT column_name (s) DE table_name1 UNION ALL SELECT column_name (s) DE table_name2 |
MISE À JOUR | MISE À JOUR nom_table SET column1 = valeur, column2 = valeur, ... OÙ some_column = some_value |
OÙ | SELECT column_name (s) FROM table_name WHERE opérateur valeur column_name |
Source: http://www.w3schools.com/sql/sql_quickref.asp
Appreciate the recommendation. Let me try it out.
ReplyDeleteHere is my webpage www.ncesc.com
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!
ReplyDeleteCheck out my blog post :: click the following internet site
Amazing! This blog looks just like my old one!
ReplyDeleteIt'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
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!
ReplyDeleteFeel free to surf my website : visit this website
I do not even know how I ended up here, but I thought this post was good.
ReplyDeleteI 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
Great blog! Do you have any hints for aspiring writers?
ReplyDeleteI'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
Hello there, I found your site via Google even as searching
ReplyDeletefor 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
Everyone loves it when individuals get together and share views.
ReplyDeleteGreat site, keep it up!
my weblog: Arabic Books
This was really a great blog!
ReplyDeleteMarketing Company
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!
ReplyDeleteAlso visit my web-site; massage blowjob
Hi there to every one, the contents existing at this site are actually remarkable
ReplyDeletefor people knowledge, well, keep up the nice
work fellows.
Look into my web page :: black sex
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
ReplyDeletenow.
Also visit my webpage :: sexygirlchat.net
It's an remarkable paragraph for all the internet users; they will get advantage from it I am sure.
ReplyDeleteAlso visit my web site; www.cuteteenporn.net
Wow, that's what I was looking for, what a stuff! present here at this weblog, thanks admin of this website.
ReplyDeleteLook into my web site :: xxxvideofix.com
My partner and I stumbled over here by a different web address and thought I might check things out.
ReplyDeleteI 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
I have read so many content on the topic of the blogger lovers but
ReplyDeletethis piece of writing is truly a good article, keep it up.
Also visit my webpage: http://www.wildpartygirls.org
Nice post. I learn something new and challenging
ReplyDeleteon 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*