I've got two somewhat related tables.
Expand|Select|Wrap|Line Numbers
- tbl_main
- id integer primary key autoincrement
- volume text unqiue not null default ''
- note text not null default ''
- tbl_media
- id integer primary key autoincrement
- volume_key text not null default ''
- fname text not null default ''
- fsize text not null default ''
- fdate text not null default ''
- ftype text not null default ''
- fduration text not null default ''
- frame text not null default ''
the second table identifies the entries by the volume_key.
my question is, can I insert new entries by selecting where a stored fname doesn't exist?
An example of what I'm asking is adding files from a flash drive to the database. I then add new files to the flash drive and want to update the database with only the newly added files.
Expand|Select|Wrap|Line Numbers
- INSERT INTO tbl_media VALUES(...) WHERE SELECT FROM tbl_media fname != 'newly added file'
TIA