Skip to content

Instantly share code, notes, and snippets.

@mjclemente
Created September 21, 2016 21:38
Show Gist options
  • Save mjclemente/7d84e8459593d3f620b01e40d316a315 to your computer and use it in GitHub Desktop.
Save mjclemente/7d84e8459593d3f620b01e40d316a315 to your computer and use it in GitHub Desktop.
Example of Insert Statement with QueryExecute
var params = {
fieldName = { value = stringVariable, cfsqltype = "CF_SQL_VARCHAR" },
otherFieldName = { value = otherVariable, cfsqltype = "CF_SQL_VARCHAR" }
};
var sql = "INSERT INTO theTable(
fieldName,
otherFieldName) VALUES (
:fieldName,
:otherFieldName)"
var qry_saveSomething = '';
QueryExecute( sql, params, {result = "qry_saveSomething"} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment