Help for this page

Select Code to Download


  1. or download this
    mysql> SELECT '18015376320243458' = 18015376320243458;
            -> 1
    mysql> SELECT '18015376320243459' = 18015376320243459;
            -> 0
    
  2. or download this
    $sth->bind_param(1, $n, { TYPE => SQL_INTEGER });
    
  3. or download this
    $sth->bind_param(1, $n);
    
  4. or download this
    perl, v5.8.8 built for x86_64-linux-thread-multi
    DBI is up to date (1.603).
    DBD::mysql is up to date (4.006).
    MySQL Server version: 5.0.33 Source distribution
    Linux 2.6.9-42.ELsmp x86_64 x86_64 x86_64 GNU/Linux
    
  5. or download this
    create table foo(i decimal(23,0) primary key);
    
  6. or download this
    $sth->bind_param(1, $n);
    $sth->bind_param(1, $n, { TYPE => SQL_INTEGER });
    
  7. or download this
    create table foo(i bigint primary key);
    
  8. or download this
    use strict;
    use warnings;
    ...
    
    __END__
    
  9. or download this
    $ prove bind_param.pl
    bind_param.......# DBD::mysql: 4.006
    ...
    Result: FAIL
    Failed 1/1 test programs. 13/3002 subtests failed.
    $
    
  10. or download this
    6700000000000000500 - 6700000000000000512
    6700000000000001536 - 6700000000000002499
    ...
    6700000000000006500 - 6700000000000007679
    6700000000000008500 - 6700000000000008704
    6700000000000009400 - 6700000000000009727
    
  11. or download this
    mysql> select version();
    +-----------+
    ...
    
    mysql> select i from foo where i='6700000000000000502';
    Empty set (0.00 sec)