Using date object for sqlite in INSERT INTO SELECT
I'm struggling with an
Here's my table definition:
I'm trying to insert a new game record by selecting some fields from the users table, but I want to provide custom timestamps for
This throws an error because SQLite seems confused about the date format. What's the correct way to provide custom timestamp values in an
Thanks for any help!
insert into select query in SQLite where I need to provide custom timestamp values.Here's my table definition:
I'm trying to insert a new game record by selecting some fields from the users table, but I want to provide custom timestamps for
createdAt and updatedAt (they should be when the game started, not when the DB insert happens). Here's what I tried:This throws an error because SQLite seems confused about the date format. What's the correct way to provide custom timestamp values in an
insert into select query with Drizzle?Thanks for any help!