If this is the wrong forum, please forgive me - I didn't see an sqlite category.
I've got two somewhat related tables.
the first table's fields are for a disc volume label and a user entered description for the disc.
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.
Something like that. Is that possible? If so, what is the proper syntax?
TIA
I've got two somewhat related tables.
Code:
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.
Code:
INSERT INTO tbl_media VALUES(...) WHERE SELECT FROM tbl_media fname != 'newly added file'
TIA
Comment