Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can Query Analyzer pretty up a SQL statement?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01102646
Message ID:
01102897
Vues:
18
>>
>>I can't tell from the VFP help, but if I use TEXT/ENDTEXT how do I insert string variables inline? Right now, my SQL statements will look like this in VFP.
>>
>>lcSQL = "SELECT * FROM customers WHERE id = " + str(lncustid) + " ORDER BY name "
>
>It's simplier and more readable with TEXTMERGE.
>
>TEXT TO lcSql TEXTMERGE NOSHOW PRETEXT 15
>SELECT *
>  FROM customers
>  WHERE id = <<lncustid>>
>  ORDER BY name
>ENDTEXT
>
Thank again Sergey. Much easier.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform