SQL :: Formato.

Eppure ancora un altro costruttore SQL
Scarica ora

SQL :: Formato. Classifica e riepilogo

Annuncio pubblicitario

  • Rating:
  • Licenza:
  • Perl Artistic License
  • Prezzo:
  • FREE
  • Nome editore:
  • Yuji Shimada
  • Sito web dell'editore:
  • http://search.cpan.org/~xaicron/

SQL :: Formato. Tag


SQL :: Formato. Descrizione

SQL :: Format è una libreria di costruzione di query facile da sql.synopsis Utilizzare SQL :: Formato; My ($ stmt, @bind) = sqlf 'Seleziona% c da% t dove% w' => (, #% c 'foo', #% t {hoge => 'fuga', piyo => ,}, #% w); # $ stmt: Seleziona il `barra`,` Baz` da `Foo` dove (` hoge` =?) E (`piyo` in (?,?,?)) # @bind: ('Fuga', 100, 200 , 300); ($ stmt, @bind) = SQLF 'Seleziona% c da% t dove% w% o' => ('*', #% c 'foo', #% t {hoge => 'fuga'}, # w {ordine_by => {bar => 'desc'}, limite => 100, offset => 10,}, #% o); # $ STMT: Seleziona * Da `Foo` Where (` Hoge` =?) Ordina per `Bar` Desc Limit 100 Offset 10 # @bind: (` Fuga ») ($ stmt, @bind) = SQLF 'AGGIORNAMENTO% T Set% s '=> (foo => {bar =>' baz ',' hoge => 'fuga'},); # $ STMT: Aggiorna `Foo` Set` Bar` =?,` Hoge` =? # @bind: ('BAZ', 'FUGA') MY $ SQLF = SQL :: Formato-> Nuovo (Quote_char => '' ', # Non citando limite_DiaLect =>' LimitXY ', # MySQL Style Limit-offset); ($ STMT, @Bind) = $ SQLF-> Seleziona (FOO => , {Hoge => 'FUGA',}, {ORDER_BY => 'BAR', LIMIT => 100, OFFSET = > 10,}); # $ stmt: select bar, baz da foo dove (hoge =?) Ordina per bar limite 10, 100 # @bind: ('Fuga') ($ stmt, @bind) = $ sqlf-> insert (foo => { bar => 'baz', hoge => 'fuga'}); # $ STMT: inserisci i valori Foo (Bar, Hoge) (? ,?) # @bind: ('Baz', 'Fuga') ($ STMT, @Bind) = $ SQLF-> Aggiornamento (foo => {bar => 'xxx'}, {hoge => 'fuga'}); # $ STMT: Aggiorna FOO SET BAR =? Dove hoge =? # @bind: ('xxx', 'fuga') ($ stmt, @bind) = $ sqlf-> cancellazione (foo => {hoge => 'fuga'}); # $ STMT: Elimina da Foo dove (Hoge =?) # @bind: ("FUGA") Homepage del prodotto


SQL :: Formato. Software correlato