Help for this page

Select Code to Download


  1. or download this
    $ctsth = $ctdbh->prepare( "INSERT INTO table(ParentID,ChildID) VALUES 
    +(?,?)" );
    
    $ctsth->bind_param( 1, $hexform1, {TYPE => SQL_BINARY} );
    $ctsth->bind_param( 2, $hexform2, {TYPE => SQL_BINARY} );
    $ctsth->execute();
    
  2. or download this
    declare @var varchar(8)
    set @var='0x02BE8B003DB14301'
    select convert(binary(8), @var)