I have a SQL statement, in ColdFusion, and I want to limit the size of one field. Neither of the following appear to work (they don't give errors, they just don't limit the field).
INSERT INTO ListItems
VALUES ('#qGetListID.ID#',
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#listItems[i].itemID#" />,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="left(#listItems[i].itemName#,100)" />)
and
INSERT INTO ListItems
VALUES ('#qGetListID.ID#',
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#listItems[i].itemID#" />,
left(<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#listItems[i].itemName#" />,100))
How can I limit that last field to only 100 characters?