Hi, all...
Does anyone know if it's possible to use a value statement
in this query that uses "dual"?
I need to insert a value of "hmls" for the field "mls" in the property_photos
table
when this query is run...
insert
into property_photos
( photo_filename, photo_mls_number )
select '#photolist.name#', '#listfirst(photolist.name, '_')#'
from dual
where
not exists (select photo_filename
from property_photos
where photo_filename = '#photolist.name#')
Thanks,
Rick
No, dual is a MySQL function, also.
I just haven't found a way to use "value" statements as part
of the "dual" select statement involved. The "dual" method
seems to be limited to the specific function of catching
duplicates.
Rick
----- Excess quoted text cut - see Original Post for more -----