Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wrong data inserted

Status
Not open for further replies.

12345s

Programmer
Joined
Dec 9, 2002
Messages
3
Location
AT
hi, i've got following problem:

if i insert a datarow into one of my tables, everything works well. (no errors) but when i select this row, the wrong data has been inserted into my primary key field.

insert into my_table (prim, a, b) values ('1234','a1','b1');
OK
select * from my_table;
prim =3627
a = a1
b = b1

any idea whats wrong here?

thanks jo
 
is prim an auto_increment?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top