Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal and SQL
Message
From
15/07/2014 15:00:34
Mike Yearwood
Toronto, Ontario, Canada
 
 
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01603687
Message ID:
01603745
Views:
51
>>>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform