example
tag { id PK, name TEXT };
item { id PK, exampleData LONG, tagId LONG //or foreign key depending on provider }
i'm using SQLite and C#. Is it proper to
- Start a transaction
- Insert into tag
- If affected rows = 0 do a select to get tag.PK otherwise use last_insert_rowid
- Insert item
or will there be a problem with the above? I plan to switch to MySql or TSQL