Tec&Cult
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Tec&Cult

Technologie et Culture
 
AccueilAccueil  PortailPortail  GalerieGalerie  Dernières imagesDernières images  RechercherRechercher  S'enregistrerS'enregistrer  Connexion  
Rechercher
 
 

Résultats par :
 
Rechercher Recherche avancée
Derniers sujets
» Que faire à Paris le week-end du 15 août ?
SQL Alias  EmptyJeu 11 Aoû - 11:20 par Admin

» T-shirt Mec de Paname
SQL Alias  EmptyMer 3 Aoû - 17:04 par Admin

» dating web site uk dating free parent single
SQL Alias  EmptyMer 3 Aoû - 10:56 par Invité

» rsvp dating website seeking bisexual
SQL Alias  EmptyLun 1 Aoû - 2:08 par Invité

» dating french woman gay bottom seeking tops
SQL Alias  EmptyDim 31 Juil - 21:59 par Invité

» dating philippine woman man seeking wealthy woman
SQL Alias  EmptyVen 29 Juil - 12:51 par Invité

» dating lesbian n r cacee cobb dating lachey nick
SQL Alias  EmptyVen 29 Juil - 3:17 par Invité

» single dating chat room relationship dating advice
SQL Alias  EmptyJeu 28 Juil - 0:21 par Invité

» скачать порно тетя скачать порнофото семейное
SQL Alias  EmptyJeu 21 Juil - 14:34 par Invité

Navigation
 Portail
 Index
 Membres
 Profil
 FAQ
 Rechercher
Forum
Partenaires
Forum gratuit


Tchat Blablaland
Le deal à ne pas rater :
Funko POP! Jumbo One Piece Kaido Dragon Form : où l’acheter ?
Voir le deal

Partagez | 
 

 SQL Alias

Voir le sujet précédent Voir le sujet suivant Aller en bas 
AuteurMessage
Admin
Admin


Messages : 156
Date d'inscription : 20/05/2010

SQL Alias  _
MessageSujet: SQL Alias    SQL Alias  EmptyJeu 23 Juin - 15:52

http://toptech.geekaddict.net/
SQL Alias

SQL Aliases are defined for columns and tables. Basically aliases is created to make the column selected more readable.

For Example: To select the first name of all the students, the query would be like:

Aliases for columns:

SELECT first_name AS Name FROM student_details;
or
SELECT first_name Name FROM student_details;

In the above query, the column first_name is given a alias as 'name'. So when the result is displayed the column name appears as 'Name' instead of 'first_name'.

Output:

Name
-------------
Rahul Sharma
Anjali Bhagwat
Stephen Fleming
Shekar Gowda
Priya Chandra

Aliases for tables:

SELECT s.first_name FROM student_details s;

In the above query, alias 's' is defined for the table student_details and the column first_name is selected from the table.

Aliases is more useful when

There are more than one tables involved in a query,
Functions are used in the query,
The column names are big or not readable,
More than one columns are combined together
Revenir en haut Aller en bas
http://toptech.geekaddict.net
 

SQL Alias

Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 1 sur 1

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Tec&Cult :: Informatique :: Oracle :: Oracle PL SQL-
Sauter vers: