in reply to Re^2: Increase a value inside MySQL query using perl
in thread Increase a value inside MySQL query using perl
And I said the DB does not have the concept of first or next (meaning the next one in an ordened sequence). It is simply not existing in an SQL database whose working is based on set-theory. You have to impose order yourself. So the OP by not defining the ordering was relying on a mechanism that does not exist when he referenced an operation on a sequence of records.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Increase a value inside MySQL query using perl
by chacham (Prior) on Oct 14, 2015 at 20:51 UTC | |
by CountZero (Bishop) on Oct 15, 2015 at 18:46 UTC | |
by chacham (Prior) on Oct 15, 2015 at 19:02 UTC | |
by CountZero (Bishop) on Oct 15, 2015 at 21:48 UTC |