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.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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