Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALLTRIM in a sql expression of cursoradapter
Message
 
À
28/03/2010 10:44:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01457654
Message ID:
01457673
Vues:
33
Hi gregory,

I put a picture with attachment.

(Private)
vp_in ='/F1/F4/'
 TEXT TO .SELECTCMD NOSHOW TEXTMERGE PRETEXT 15
			SELECT HDBK, Hid , HDOCNO, HAMOUNT,  STR( HDOCDATE ) AS 'DATEDOC',CREATEDBY,
			STR(Createdon) AS 'createdon' , hremint  FROM <<.TABLES>>
		      ENDTEXT
This command give 42000 RECORDS...
 TEXT TO .SELECTCMD NOSHOW TEXTMERGE PRETEXT 15
			SELECT HDBK, Hid , HDOCNO, HAMOUNT,  STR( HDOCDATE ) AS 'DATEDOC',CREATEDBY,
			STR(Createdon) AS 'createdon' , hremint  FROM <<.TABLES>>
WHERE HDBK LIKE '/F1/F4/FC/ '
		      ENDTEXT
This command give NO record and in do'nt understand the reason...









>>>>I'm assuming that '%' is included into Vp_in already, because otherwise I don't see a reason for using LIKE and not = at all.
>>>
>>>In that case, there's no need to trim, is there ?
>>
>>No need to trim, you're right. I'm wondering why Bernhart insists on trimming.
>
>
>Maybe the %'s aren't in after all
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform