Hello I am writing a script to connect to an oracle db using cx_oracle module, and when I insert into my table its just inserting randomly. I was hoping it would just append it to the very end of the table.
My insert statement is below
query = "INSERT INTO CARDS(DATE,HOUR,TOTAL_CARDS,APPROVAL_RATE,PEND_RATE) VALUES('"+Ret[0]+"','" +Ret[1]+"','" +Ret[2]+"','" +Ret[3]+"','" +Ret[4]+"','")
it just inserts randomly I just want it to append to the very end of the table so it goes in order by HOUR. I dont have a primary key in the table is there a work around without using one?
is it possible to order the table by hour first then insert? would that work?