Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find a string within a column in sqlserver
Message
De
03/06/2008 07:57:49
 
 
À
02/06/2008 17:42:51
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:
01321246
Vues:
11
Perfect Stefan, thanks!

>>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
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform