in reply to Inserting to a bigint data type in Sybase using prepare statements
Try an explicit conversion
pojmy $insert_sth = " INSERT INTO some_table ( transaction_id, ccn_masked, cardholder_name, exp_month, exp_year,card_type, token_id ) VALUES (?, ?, ?, ?, ?, ?, CONVERT(BIGINT,?) )";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Inserting to a bigint data type in Sybase using prepare statements
by j_ochoa (Novice) on Jul 07, 2017 at 13:23 UTC | |
by chacham (Prior) on Jul 07, 2017 at 14:18 UTC | |
by poj (Abbot) on Jul 07, 2017 at 14:29 UTC | |
by j_ochoa (Novice) on Jul 10, 2017 at 06:36 UTC | |
by poj (Abbot) on Jul 10, 2017 at 07:01 UTC | |
by j_ochoa (Novice) on Jul 10, 2017 at 08:31 UTC |