# How can I create a row in SQL with data through a button on the screen

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-create-a-row-in-sql-with-data-through-a-button-on-the-screen/57310>\
**Category:** Ignition\
**Created:** [March 17, 2022, 2:21pm UTC](https://forum.inductiveautomation.com/t/how-can-i-create-a-row-in-sql-with-data-through-a-button-on-the-screen/57310 "2022-03-17T14:21:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jefferson\_Nascimento](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@Jefferson\_Nascimento](https://forum.inductiveautomation.com/u/Jefferson_Nascimento)\
**Post date:** [March 17, 2022, 2:21pm UTC](https://forum.inductiveautomation.com/t/how-can-i-create-a-row-in-sql-with-data-through-a-button-on-the-screen/57310/1 "2022-03-17T14:21:30Z")

</div>

Hi,

How can I create a row in SQL with data through a button on the screen?  
Thanks

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [March 17, 2022, 2:23pm UTC](https://forum.inductiveautomation.com/t/how-can-i-create-a-row-in-sql-with-data-through-a-button-on-the-screen/57310/2 "2022-03-17T14:23:04Z")

</div>

I highly recommend going through [Browse the Lesson Library at Inductive University](https://inductiveuniversity.com/courses/whats-new-in-ignition-8/8.0) to learn all of that and more. Specifically either the vision videos or perspective videos depending on what sort of project you are making though some pre-requisite SQL knowledge will be required.

The SQL In Ignition videos also contain information regarding how to run SQL from an Ignition project - might want to start there.

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [March 17, 2022, 2:25pm UTC](https://forum.inductiveautomation.com/t/how-can-i-create-a-row-in-sql-with-data-through-a-button-on-the-screen/57310/3 "2022-03-17T14:25:48Z")

</div>

> [@bkarabinchak.psi](#):
>
> I highly recommend going through [Browse the Lesson Library at Inductive University](https://inductiveuniversity.com/courses/whats-new-in-ignition-8/8.0) to learn all of that and more

+1 for this.

In the meantime, look at [Named Queries](https://docs.inductiveautomation.com/display/DOC81/Named+Queries) and [system.db.runNamedQuery](https://docs.inductiveautomation.com/display/DOC81/system.db.runNamedQuery).
