Selectia unor campuri dintr-o tabela – Clauza SELECT

October 15, 2009

Clauza SELECT – extrage date dintr-o BD

Folosire clauza SELECT pt. selectia unor anumite campuri dintr-o singura tabela precum si a tuturor campurilor din tabela respectiva:

Clauza select este insotita de lista de campuri urmata de FROM si numele tabelei.


Poate aparea conditia WHERE , dupa WHERE se poate pune GROUP BY daca avem functie agregat si dupa ORDER BY pentru ordonare.

Inner-join se pune inaintea clauzei GROUP BY!


Intr-un select se pot face calcule!



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: