# Database Query Editor cannot write NULL to field

**URL:** <https://forum.inductiveautomation.com/t/database-query-editor-cannot-write-null-to-field/30756>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [December 17, 2019, 7:53am UTC](https://forum.inductiveautomation.com/t/database-query-editor-cannot-write-null-to-field/30756 "2019-12-17T07:53:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 17, 2019, 7:53am UTC](https://forum.inductiveautomation.com/t/database-query-editor-cannot-write-null-to-field/30756/1 "2019-12-17T07:53:42Z")

</div>

v7.9.12

I’m trying to write a NULL value into a field in the Database Query Browser, however I get a big fat red when I do… is this a limitation, or is there some sytnax I need to use?

Also, what type of query makes a table editable within this tool? More often than not, I’m unable to edit a table from this tool and I’m never sure why. Even if the query is a simple `SELECT * FROM <TABLE>`

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/aefcc69a417891acc7ce6b63dbfaa87fc0211092.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 17, 2019, 11:14am UTC](https://forum.inductiveautomation.com/t/database-query-editor-cannot-write-null-to-field/30756/2 "2019-12-17T11:14:09Z")

</div>

Can’t help you with the null, as there no string you can type that transforms to null. This is true in many DB editors. Some of them will transform an empty string as null.

As for editability, that requires an identifiable primary key within your query results.

---

<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:** [December 17, 2019, 1:25pm UTC](https://forum.inductiveautomation.com/t/database-query-editor-cannot-write-null-to-field/30756/3 "2019-12-17T13:25:15Z")

</div>

Also related to editing the DB from a project make sure your project properties allow you to. On the newer versions of Ignition you’re not allowed to be default. I think it’s an option under security?

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [December 17, 2019, 2:39pm UTC](https://forum.inductiveautomation.com/t/database-query-editor-cannot-write-null-to-field/30756/4 "2019-12-17T14:39:01Z")

</div>

@bkarabinchak.psi The legacy DB access option only applies to the client, not the designer. But still a good reminder for people who happen across this.
