© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Adding line breaks to sqlite text - Drizzle Team
DT
Drizzle Team
•
3y ago
•
4 replies
oscarina
Adding line breaks to sqlite text
Hello
, i
'm trying to add a text field into my database that can have line breaks
.
According to what i
've found on SO i can
't insert escaped line breaks like
"
\n
"
.
I
'm trying to replace the
"
\n
" with char
(10
) with sql templates and sql
.raw
, but nothing that i
've tried seems to work
.
https://stackoverflow.com/questions/47227684/how-to-insert-a-new-line-n-character-in-sqlite
Is this possible
? Any help would be greatly appreciated
.
Stack Overflow
How to insert a new line ("\n") character in SQLite?
While trying to insert something like
:
"Hello
\nWorld
"
SQLite throws error something like
:
Message
: unrecognized token
:
"
'Hello
"
;
"
(also few other errors
)
Even though I convert above string
.
.
.
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Text array column in sqlite
DT
Drizzle Team / help
7mo ago
Cannot migrate/push after adding column to sqlite table
DT
Drizzle Team / help
2y ago
Missing newlines when querying sqlite text column
DT
Drizzle Team / help
2y ago
How to store/query multi-line text in database?
DT
Drizzle Team / help
16mo ago