# How to use parameter in execute sql script?

**URL:** <https://community.automationedge.com/t/how-to-use-parameter-in-execute-sql-script/3627>\
**Category:** Get Help & Discuss\
**Tags:** rpa, process-studio\
**Created:** [June 11, 2021, 6:03am UTC](https://community.automationedge.com/t/how-to-use-parameter-in-execute-sql-script/3627 "2021-06-11T06:03:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubhamautomation](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/shubhamautomation/32/604_2.png) [@Shubhamautomation](https://community.automationedge.com/u/Shubhamautomation)\
**Post date:** [June 11, 2021, 6:03am UTC](https://community.automationedge.com/t/how-to-use-parameter-in-execute-sql-script/3627/1 "2021-06-11T06:03:06Z")

</div>

Hello,  
I want to create table using **Execute sql script**. I want that **field name to be used as column name** in table.  
How can I do this? I have used ? mark to use paramter but it is giving error.

 ![parameter error](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/81df202380534d0622905d4d9df4bb6c5d5fd5f1.png)

---

<div class="post-metadata">

**Author:** ![Garr14](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/garr14/32/824_2.png) [@Garr14](https://community.automationedge.com/u/Garr14)\
**Post date:** [June 24, 2021, 3:56pm UTC](https://community.automationedge.com/t/how-to-use-parameter-in-execute-sql-script/3627/2 "2021-06-24T15:56:21Z")

</div>

Hello Shubham,

Greetings. You can use the below options to execute your statement.

You can remove the semi semicolon and Select ‘Execute for each row?’ and try to execute the statment.

Also check if you have the same table in database.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/3c3d0e9a091623ceb5d5bad8900d5c3725a83c91.png)

---

<div class="post-metadata">

**Author:** ![Shubhamautomation](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/shubhamautomation/32/604_2.png) [@Shubhamautomation](https://community.automationedge.com/u/Shubhamautomation)\
**Post date:** [June 24, 2021, 4:16pm UTC](https://community.automationedge.com/t/how-to-use-parameter-in-execute-sql-script/3627/3 "2021-06-24T16:16:53Z")

</div>

Ok thank you !!
