[sqlite] Updating a filed in table a with contents from table b

2016-01-25 Thread audio muze
anyone?

[sqlite] Updating a filed in table a with contents from table b

2016-01-24 Thread audio muze
I have a large table with ~350k records for which I'm in the process of standardising data. The fields I'm most interested in standardising are albumartist, artist, performer and composer. I'm dealing with one at a time and the logic for each is the same. I'll state in advance that I'm a SQL

[sqlite] Updating the contents of a field in table A with the value of the same field in table B

2016-01-16 Thread audio muze
Thanks Keith That's what I'd tried with my first attempt but naturally it didn't work. Why is it that SQLite does not support a FROM clause in an update statement? On Sat, Jan 16, 2016 at 10:07 AM, Keith Medcalf wrote: > > Of course, if there was a FROM clause for UPDATE it would be as simple

[sqlite] Updating the contents of a field in table A with the value of the same field in table B

2016-01-16 Thread audio muze
> Is it a typo in inner query or you ARE asking for a resource from target? Apologies all, I'm fast asleep, it should've read: UPDATE target SET resource = ( SELECT s.resource FROM source s WHERE ( s.ID = ID AND s.resource IS NOT NULL ) );

[sqlite] Updating the contents of a field in table A with the value of the same field in table B

2016-01-16 Thread audio muze
Apologies if I'm asking an obvious question, but I've searched and tried various options and have not been able to arrive at an UPDATE statement in SQLite that does what I need. I've two tables with a unique identifier that enables me to link them. I'm wanting to update the values of a particular

[sqlite] Parsing the contents of a field

2016-01-16 Thread audio muze
> What do you mean by "parse" ? Just to separate a string into its delimited > substrings ? Since SQLite has no array or list variable-type there's no way > to do that because there's no way to return the result. Can you not just > return the value retrieved from the table and parse it in

[sqlite] Parsing the contents of a field

2016-01-13 Thread audio muze
I have a table of roughly 500k records with a number of fields containing delimited text that needs to be parsed and written to separate tables as a master lists. In order to do this I need to parse the field contents, however, I don't see any functions within SQLite to enable that. The number

[sqlite] Question regarding use of REPLACE

2016-01-07 Thread audio muze
I'm trying to get some consistency in the contents of a field in a table. To do so involves multiple updates using REPLACE. Is it acceptable to make multiple calls to replace involving the same field in a single update operation, like so: UPDATE audio SET composer = REPLACE( composer, " / ",