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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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