Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal and SQL
Message
De
15/07/2014 15:00:34
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
15/07/2014 14:47:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01603687
Message ID:
01603745
Vues:
50
>>>What can be more concise than REPLACE a WITH b?
>>
>>Sorry Bill but this gave me a chuckle. How is that concise? You don't say if b is a field or a memvar and you don't say the alias. ;) Just kidding around.
>
>UPDATE Table SET Column = 'some value'
>
>Pretty concise to me :)

We discovered a bug yesterday. 1 REPLACE only allows 128 a with b sets and gives a syntax error if you go beyond that, whereas SQL gives a too many fields in update error, if you go beyond 256. Even it's bug reporting is more concise. :)

However, one of my pet peeves about SQL is why do they use SET column = value in the UPDATE command, but

INSERT INTO TABLE (field1, field2, field3, field4, field5)
values (asdgagrwsf,asdfasg,asdfkaflka,asfkslkasklf,afklasdlka)

I find it hard to match the values against the field names. IMO it would be better
INSERT INTO TABLE (
field=asdgagrwsf,
field2=asdfasg,
field3=asdfkaflka)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform