SQL Query to Title Select Images in a Given Album SQL Query to Title Select Images in a Given Album
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

SQL Query to Title Select Images in a Given Album

Started by Brooklyn, April 18, 2012, 03:13:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brooklyn

Similar to this question, how would I then batch name via SQL query a select portion of pictures within a given album? For example, I want to title only pictures xxx through yyy inside a given album, I assume using a PID statement, but cannot figure out how to implement that variable.

Any suggestions?

ΑndrĂ©

http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html#operator_between

So you could use something like
UPDATE cpg15x_pictures SET title = 'new title' WHERE pid BETWEEN xxx AND yyy

Brooklyn