Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find a string within a column in sqlserver
Message
De
02/06/2008 17:42:51
 
 
À
02/06/2008 16:16:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01321126
Message ID:
01321163
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>Oh gosh, it couldn't be that simple could it? I'll test it - thanks Stefan!

Actually I was not sure when I read your description, so I'm happy you did not laugh at me :-)
FWIW, if you want only those rows where the second part after the semicolon exactly equals "ABC" (ignoring whitespace), then I believe something like this might work (untested)
Select * From dbo.myTable 
    Where 
        Replace( 
            SubString( 
                myField, CharIndex(';',myField), Len(myField)
                ), 
            ' ','' 
            ) = ';ABC';
Regards
-Stefan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform