Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the alternative of CTE in MySQL
Message
 
 
À
01/03/2011 05:39:27
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web Service
Divers
Thread ID:
01502188
Message ID:
01502192
Vues:
43
>Can you tell me what is the alternative of CTS(Common table expression in SQL Server 2005) in MySQL

CTE (common table expressions) are often used instead of derived tables to improve readability. So, in MySQL you can use derived tables instead.

If you wanted to use recursive CTE, then it's not available in MySQL. However, recursive CTEs in SQL Server is a hidden 'cursor' in disguise, so you may be better using Numbers table approach if applicable.

See also http://stackoverflow.com/questions/1382573/how-do-you-use-the-with-clause-in-mysql
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform