SQL :: InterPolate.

SQL :: Interpolate´Â Perl º¯¼ö¸¦ SQL ¹®À¸·Î º¸°£ÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

SQL :: InterPolate. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • David Manura
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~dmanura/SQL-Interpolate-0.33/lib/SQL/Interpolate.pm

SQL :: InterPolate. ű×


SQL :: InterPolate. ¼³¸í

SQL :: InterPolate´Â Perl º¯¼ö¸¦ SQL ¹®À¸·Î º¸°£ÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. SQL :: InterPolate´Â Perl º¯¼ö¸¦ SQL ¹®À¸·Î º¸°£ÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù .Synopsis SQL :: InterPolate QW (: ALL)¸¦ »ç¿ëÇÕ´Ï´Ù. # ÀϺΠ»ùÇà µ¥ÀÌÅÍ : ³» $ s = 'Ǫ¸¥'; ³» @v = (5, 6); # º¯¼ö ÂüÁ¶°¡ ¹ÙÀÎµå ¸Å°³ º¯¼ö·Î º¯È¯µË´Ï´Ù. # °¡Àå ±âº»ÀûÀÎ »ç¿ë¹ýÀº ScalarRefs ( "in"& "anryrefs #"»Ó¸¸ ¾Æ´Ï¶ó ")À» Æ÷ÇÔÇÕ´Ï´Ù. ³» ($ sql, @bind) = sql_interp 'table¿¡¼­ x =', $ s '¹× y'¿¡¼­ '@v; # °á°ú : # $ SQL = 'SELECT * MYTABLE¿¡¼­ x = =? ±×¸®°í (?,?) '# @bind = ($ s, @v); # ƯÁ¤ ÄÁÅؽºÆ®¿¡¼­ ArrayRef ¶Ç´Â HashRef´Â ´ÜÀÏ Æ©Ç÷ΠÀÛµ¿ÇÕ´Ï´Ù. My ($ SQL, @bind) = SQL_Interp 'Å×ÀÌºí¿¡ »ðÀÔ', {x => $ s, y => 1}; # °á°ú : # $ SQL = 'mytable (x, y) °ª (?)¿¡ »ðÀÔÇϽʽÿÀ (?). # @bind = ($ s, 1); MY ($ SQL, @bind) = SQL_INTERP 'UPDATE TABLE SET', {X => $ s, y => 1}, 'y', 2; # °á°ú : # $ SQL = '¾÷µ¥ÀÌÆ® MyTable Set x =?, y =? ¾îµð¿¡¼­ y? '; # @bind = ($ s, 1, 2); # ÀϹÝÀûÀ¸·Î HashRef´Â # ³í¸® ¹× ±¸Á¶¸¦ ÁöÁ¤ÇϱâÀ§ÇÑ ¹Ù·Î °¡±â¸¦ Á¦°øÇÕ´Ï´Ù. My ($ SQL, @bind) = SQL_Interp 'Table¿¡¼­', {x => $ s, y => @v}; # °á°ú : # $ SQL = 'SELECT * (x =?, y in (?)'¿¡¼­ ¼±ÅÃÇϽʽÿÀ. '; # @bind = ($ s, @v); # ÀϹÝÀûÀ¸·Î ArrayRef´Â °á°ú ÁýÇÕ ¶Ç´Â Àӽà Å×ÀÌºí¿¡ ´ëÇÑ ÂüÁ¶·Î ÀÛµ¿ÇÕ´Ï´Ù. My ($ SQL, @Bind) = SQL_Interp , ], 'Union', , ] # $ SQL = '¼±Åà : # $ SELECT? ?) tbl0 '; # @bind = (1,2,4,5); # °¢ °á°ú´Â DBI : MY $ RES = $ DBH-> SELECTALL_ARRAYREF ($ SQL, Undef, @ Bind)¿¡ Àü´ÞÇϱ⿡ ÀûÇÕÇÕ´Ï´Ù. #ÀÌ °£´ÜÇÑ ±â¼ú ¿Ü¿¡µµ SQL-Interpolate´Â # dbi¿Í ÇÔ²² SQL :: Interpolate¸¦ Ãß°¡·Î ÅëÇÕÇÏ°í ¼Ò½º ÇÊÅ͸µ ¹× ¸ÅÅ©·Î¿Í ±¸¹®À» °£¼ÒÈ­ÇÏ´Â ´Ù¾çÇÑ ¼±ÅÃÀû ¸ðµâÀ» Æ÷ÇÔÇÕ´Ï´Ù (L ¼½¼Ç ÂüÁ¶) : dbix :: Interpolate filter => 1; ... My $ rows = $ DBX-> SELECTALL_ARRAYREF (SQL ); ¿ä±¸ »çÇ× : ¡¤ Perl.


SQL :: InterPolate. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

html_quickform_livetext.

HTML_QUICKFORM_LIVETEXT ÇÁ·ÎÁ§Æ®´Â Å° ÇÁ·¹½º¸¦ °¡·Î ä´Â ÀÔ·Â ÅؽºÆ®·Î ±¸Çö µÈ »ç¿ëÀÚ Á¤ÀÇ html_quickform ¿ä¼ÒÀÔ´Ï´Ù. ...

133

´Ù¿î·Îµå