Help for this page

Select Code to Download


  1. or download this
    INSERT INTO data (skey, svalue) VALUES ('Stuff', 'Ge 1:1-more &stuff& 
    +here ');
    
  2. or download this
    $dbh->do("INSERT OR REPLACE INTO data (skey, svalue) VALUES ('Stuff', 
    +'Ge 1:1-more &stuff& here ''');");
    
  3. or download this
    $VAR1 = {
              'Stuff' => {
    ...
                           'skey' => 'Stuff'
                         }
            };
    
  4. or download this
    $dbh->do(
        q/INSERT OR REPLACE INTO data (skey, svalue) VALUES ('Stuff', 'lit
    +eral dollar sign: $, literal single quote: '', literal ampersand: &')
    +;/
    );
    
  5. or download this
    my $sth = $dbh->prepare(
        'INSERT OR REPLACE INTO data (skey, svalue) VALUES (?, ?);'
    ...
    $sth->bind_param(1, $skey);
    $sth->bind_param(2, $svalue);
    $sth->execute();