This is a multi-part message in MIME format.

------=_NextPart_000_0054_01C01CB4.1200B0A0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

can someone tell me if there is a way to consolidate this query into one =
Query rather than multiple queries like I'm currently doing?

<cfquery name=3D"Companynumber_Update" datasource=3D"Oco_Adapco" =
dbtype=3D"ODBC">
UPDATE Ct_productsTemp
SET CompanyNumber =3D'1'
WHERE
CompanyNumber =3D'AP'
</cfquery>
<cfquery name=3D"Companynumber_Update" datasource=3D"Oco_Adapco" =
dbtype=3D"ODBC">
UPDATE Ct_productsTemp
SET CompanyNumber =3D'2'
WHERE
CompanyNumber =3D'NL'
</cfquery>
<cfquery name=3D"Companynumber_Update" datasource=3D"Oco_Adapco" =
dbtype=3D"ODBC">
UPDATE Ct_productsTemp
SET CompanyNumber =3D'3'
WHERE
CompanyNumber =3D'BL'
</cfquery>

Thanks
Ben Densmore

------=_NextPart_000_0054_01C01CB4.1200B0A0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>can someone tell me if there is a way =
to=20
consolidate this query into one Query rather than multiple queries like =
I'm=20
currently doing?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;cfquery =
name=3D"Companynumber_Update"=20
datasource=3D"Oco_Adapco" dbtype=3D"ODBC"&gt;<BR>UPDATE =
Ct_productsTemp<BR>SET=20
CompanyNumber =3D'1'<BR>WHERE<BR>CompanyNumber=20
=3D'AP'<BR>&lt;/cfquery&gt;<BR>&lt;cfquery name=3D"Companynumber_Update" =

datasource=3D"Oco_Adapco" dbtype=3D"ODBC"&gt;<BR>UPDATE =
Ct_productsTemp<BR>SET=20
CompanyNumber =3D'2'<BR>WHERE<BR>CompanyNumber=20
=3D'NL'<BR>&lt;/cfquery&gt;<BR>&lt;cfquery name=3D"Companynumber_Update" =

datasource=3D"Oco_Adapco" dbtype=3D"ODBC"&gt;<BR>UPDATE =
Ct_productsTemp<BR>SET=20
CompanyNumber =3D'3'<BR>WHERE<BR>CompanyNumber=20
=3D'BL'<BR>&lt;/cfquery&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Ben Densmore</FONT></DIV></BODY></HTML>

------=_NextPart_000_0054_01C01CB4.1200B0A0--

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to