Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adjusting for alltrim
Message
 
 
À
08/02/2009 20:20:39
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01380195
Message ID:
01380213
Vues:
62
This message has been marked as the solution to the initial question of the thread.
I dunno about ANSI compliance but for VFP and MS SQL Server you can use
LEN(RTRIM(LTRIM(Temp.Link)))
-- in MS SQL Server you can get the same result with just
LEN(Temp.Link)
>Is there a way to adjust this SQL command to be ANSI compliant?
>
>
>SELECT Temp.Numero,Temp.Link,Temp.TotalLink,Link.URL,LEN(ALLTRIM(Temp.Link)) AS LenLink
> FROM (SELECT MIN(Link.Numero) AS Numero,Link.Link,COUNT(*) AS TotalLink
> FROM Link GROUP BY 2) AS Temp
> INNER JOIN Link ON Temp.Numero=Link.Numero
> ORDER BY LenLink DESC
>
>
>The problem is with the alltrim command.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform