<cfquery name="updateposition" datasource="#request.dsn#">
UPDATE dbo.artikel
SET art_subposition = 0
, art_position = 0
WHERE
(art_subposition > <cfqueryparam cfsqltype="cf_sql_integer" value="#val(form.rows_right)#">
AND art_position = 2
)
or (art_subposition > <cfqueryparam cfsqltype="cf_sql_integer" value="#val(form.rows_left)#">
AND art_position = 1
)
</cfquery>
|