mysql has an extremely useful extension to standard sql: ON DUPLICATE
KEY UPDATE ...
check out mysql ref manual for details - it sounds like what you may
want to use...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Rick Faircloth wrote:
> Tried that at the same time I put the "where clause" before
> the "values" clause...
>
>                       insert into hmls_photos
>                                  (photo_filename, photo_mls_number)
>                        where #photolist.name# not in
>                                  (select photo_filename from hmls_photos)
>
>                       values (<cfqueryparam cfsqltype="cf_sql_varchar" 
> value="#photolist.name#">,
>                                       <cfqueryparam cfsqltype="cf_sql_varchar"
> value="#listfirst(photolist.name, '_')#">)
>
>
>   

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305438
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to