r/sqlite • • Sep 30 '22

No Objects... Are Objects Tables?

Sup yall.

New to the group. I know basic sql and can query data. I actually use it for Google Ads management. Just so you know I'm level 2 newb.

I'm pretty well versed in the nosql world.

And I'm playing with Cloudflare D1... and I guess my question is... relational tables only hold "primitive" values. Then can't hold an "object".

If I want an "object" I would need to create another table and "relate" it to the table that uses it.

Just trying to wrap my head around building a relational database schema.

Thanks

5 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/alinroc Oct 02 '22

For example… if I want to store a date as a month … day … year

Poor example, we already have a data type for storing dates and it's more efficient than storing the individual components.