1. 首页
  2. 文档
  3. Execute SQL statement

白皮书下载

实在智能Agent产品白皮书(7.2.0).pdf

Execute SQL statement

发刊日期:
2021/10/15

编辑团队:
实在学院

Function description

  Execute the SQL statement in the target database and return the number of affected rows. It needs to be used in combination with the database connection component.

instructions

  After adding the SQL statement execution component to the visual editing area, the attribute & ldquo; Output to variable & rdquo; Set the output content variable parameter in & ldquo; Target database object & rdquo; Enter the variable name of the database object in & ldquo; SQL statement & rdquo; Enter the SQL statement to be executed in & ldquo; SQL statement parameters & rdquo; Enter the parameter value in. After setting the attribute value, it runs successfully. Print the returned value to get the execution result.  if属性  

  if属性

Attribute description

  • Target database object: the previously opened database link.
  • SQL statement: SQL statement without parameters

  if属性

  With parameters

  if属性

  • SQL statement parameters: SQL statement parameters. Single parameter: ['1 '], multi parameter: ['1','2 ','3']
  • Output to: output to the variable.

Code description

  • Code example 

  if属性

  • Parameter description

  if属性

  • Return value description

  if属性

企业培训
技术支持
加入社群
公众号
实在智能Agent学习群
扫码关注微信公众号