Created
September 21, 2016 21:38
-
-
Save mjclemente/7d84e8459593d3f620b01e40d316a315 to your computer and use it in GitHub Desktop.
Example of Insert Statement with QueryExecute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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