retrieve a value from database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Varun Rajput
    New Member
    • Apr 2012
    • 1

    retrieve a value from database

    I have concatenate Complaint no( primary attribute) with sysdate,branch( attribute) and sequence and I want to retrieve last Complaint no from oracle database.
    please send me correct code for it
    I am using PHP Technology with Oracle database.
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    Why do you do this?
    I have concatenate Complaint no( primary attribute) with sysdate,branch( attribute) and sequence
    If you want to accomplish this.....
    I want to retrieve last Complaint no from oracle database.
    Try:
    Code:
    SELECT MAX(Complaint) FROM <your_table_name>
    to get the last Complaint from that table..

    Comment

    Working...