1. 首页
  2. 文档
  3. Execute single SQL query

白皮书下载

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

Execute single SQL query

发刊日期:
2021/10/15

编辑团队:
实在学院

Function description

  Execute SQL statement query in the target database and the first record in the query result set. It needs to be used together with the database connection component.

instructions

  After adding the SQL query component of the execution order 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 & ldquo; Display Dictionary & rdquo; Select whether to display the dictionary in the setting. After the attribute value is set, it runs successfully. Print the returned value content to get the execution result. As shown in the figure.  

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'].
  • Display Dictionary: displays the key in the returned value.

  Do not return Dictionary:

  if属性

  Return to Dictionary:

if属性

  • Output to: output to the variable.

Code description

  • Code example  

  if属性  

  • Parameter description

  if属性  

  • Return value description

  if属性

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