SqlDbx Forum

SqlDbx

You are not logged in.

#1 2010-02-11 19:00:43

Allen
Member

GENERATE SELECT/UPDATE ENHANCEMENT

When generating a select or update statement, how about adding a WHERE clause for every field that is included in a UNIQUE index setup for that table?  You could leave zero-length strings for the values.  So if, for instance, you have a table which has City and State as fields in a UNIQUE index, append:

WHERE City='' AND State=''

You could get fancy, and provide a zero (without quotes, of course) if it is an integer field.

I'd leave off any Primary Keys that are integer-based, but that's me...

Offline

#2 2010-02-12 00:07:02

sqldbxhelp
Administrator

Re: GENERATE SELECT/UPDATE ENHANCEMENT

This is good idea for one of the next releases

Offline

Board footer

Powered by FluxBB