ID generate concatenate-current-date-autonumber |
10/16/2017 03:47:06 | |
| PHPRunner General questions | ||
|
K
Khampol author
Hi, |
||
|
|
Please delete this account 10/16/2017 |
|
Citing excerpt ex: http://asprunner.com/forums/topic/14682-concatenate-current-date-autonumber/ |
|
|
K
|
Khampol author 10/16/2017 |
I found the solution now : <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=83482&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />
$sql="select max(substr(PURCHASE_NUMBER,9)) as mx from TableName where substr(PURCHASE_NUMBER,5,2)=month(now())";
|
|
|
K
|
Khampol author 10/16/2017 |
|
Am I correct for the DB ? |
|
|
K
|
Khampol author 10/16/2017 |
|
Please help me. I really need this... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=83487&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=83487&image=2&table=forumreplies' class='bbc_emoticon' alt=':(' /> |
|