Simple SQlite commands

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Simple SQlite commands

by mp3_monkey » Tue Jan 15, 2008 11:20 pm

okay - figured it out - UPDATE Songs SET IDMedia ='47'

But I ran into the IUNICODE problem as described in http://www.mediamonkey.com/forum/viewto ... ht=unicode so I guess thats a brick wall for now, ie cannot make changes to the database using external editors.

However, it appears a workaround may be here:
http://www.mediamonkey.com/forum/viewto ... fc6d1a294a

Simple SQlite commands

by mp3_monkey » Tue Jan 15, 2008 10:24 pm

For a database called TEST.DB, and a table called SONGS :

1) What is the command line syntax to change all values in the column IDMedia to 47? Is it something like
REPLACE TEST.SONGS.[IDMedia] WITH 47 ??

2) What is the substring-like command line syntax to change all references of "\\PC01\" to"C:\"in the column SongPath. Ie end produvt would be
FROM: \\PC01\Users\Public\Music\Library\Abba\Chiquitita.flac to
TO: C:\Users\Public\Music\Library\Abba\Chiquitita.flac

Top