SQL :: Format.

ainda outro construtor SQL
Baixe Agora

SQL :: Format. Classificação e resumo

Propaganda

  • Rating:
  • Licença:
  • Perl Artistic License
  • Preço:
  • FREE
  • Nome do editor:
  • Yuji Shimada
  • Site do editor:
  • http://search.cpan.org/~xaicron/

SQL :: Format. Tag


SQL :: Format. Descrição

SQL :: Format é uma biblioteca de construção de consulta SQL de SQL.Synopsis Use SQL :: Format; meu ($ stmt, @bind) = sqlf 'select% c de% t where% w' => (, #% c 'foo', #% t {hoge => 'fuga', piyo => ,}, #% w); # $ stmt: Selecione `Bar`,` BAZ 'de `foo` onde (` `Hoge` =?) e (` Piyo` em (? ,??? ,?????)) # @bind: (' Fuga ', 100, 200 , 300); ($ stmt, @bind) = sqlf 'select% c de% t em que% w% o' => ('*', #% c 'foo', #% t {hoge => 'fuga'}, # w {Order_by => {bar => 'Descar'}, limite => 100, deslocamento => 10,}, #% o); # $ stmt: select * de `foo ', onde (` `Hoge` =?) Ordem por` bar` desce limite 100 deslocamento 10 # @bind: (`fuga`) ($ stmt, @bind) = sqlf' update% t Set% s '=> (foo => {bar =>' baz ',' Hoge => 'fuga'},); # $ stmt: atualização `foo 'conjunto` bar` =?, `hoge` =? # @bind: ('BAZ', 'fuga') Meu $ SQLF = SQL :: Format-> NOVO (QUOTE_CHAR => '', # não citar Limite_Dialect => 'LimitXy', # deslocamento de limite de estilo mysql); ($ stmt, @bind) = $ sqlf-> select (foo => , {hoge => 'fuga',}, {order_by => 'bar', limite => 100, deslocamento => 100, deslocamento => 100, deslocamento > 10,}); # $ stmt: Select Bar, BAZ de foo onde (hoge =?) ordem por bar limite 10, 100 # @bind: ('fuga') ($ stmt, @bind) = $ sqlf-> inserção (foo => { Bar => 'Baz', Hoge => 'Fuga'}); # $ stmt: inserir em valores de foo (bar, hoge) (? ,?) # @bind: ('BAZ', 'fuga') ($ stmt, @bind) = $ sqlf-> atualização (foo => {bar => 'xxx'}, {hoge => 'fuga'}); # $ stmt: atualizar foo set bar =? Onde hoge =? # @bind: ('xxx', 'fuga') ($ stmt, @bind) = $ sqlf-> excluir (foo => {hoge => 'fuga'}); # $ stmt: delete de foo onde (hoge =?) # @bind: ('fuga') página inicial do produto


SQL :: Format. Software Relacionado