2006-11-09, 12:20 PM
Well,
In the spirit of keeping this as a list of nice SQL commands, I've done something similar that allows me (from a batch-file) to list recordings in a certain status...
Here's the batch-file:
I've called it "getStatus.bat", and I can call it from the command-line with a parameter, so that when I do "getStatus 5", I get an overview of all conflicting recorings, "getStatus 4" will give me an overview of all Season recordings etc....
Only thing added is that I've added an inner join to the SQL syntax (reduces the need for two seperate queries)....
In the spirit of keeping this as a list of nice SQL commands, I've done something similar that allows me (from a batch-file) to list recordings in a certain status...
Here's the batch-file:
Code:
"C:\gbpvr\gbpvr\Third Party\sqlite3.exe" -separator "," c:\gbpvr\gbpvr\gbpvr.db3 "SELECT p.name, p.sub_title FROM RECORDING_SCHEDULE AS s inner join PROGRAMME as p on s.programme_oid = p.oid where s.status = %1;"
I've called it "getStatus.bat", and I can call it from the command-line with a parameter, so that when I do "getStatus 5", I get an overview of all conflicting recorings, "getStatus 4" will give me an overview of all Season recordings etc....
Only thing added is that I've added an inner join to the SQL syntax (reduces the need for two seperate queries)....
//Ton