dbi :: babyconnect.

µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ DBI ¿¬°áÀ» º¸À¯ÇÏ´Â °´Ã¼¸¦ ¸¸µì´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

dbi :: babyconnect. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Bassem W. Jamaleddine
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~maxou/

dbi :: babyconnect. ű×


dbi :: babyconnect. ¼³¸í

µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ DBI ¿¬°áÀ» º¸À¯ÇÏ´Â °´Ã¼¸¦ ¸¸µì´Ï´Ù. DBI :: BabyConnect´Â DBI :: BabyConnect ¸ðµâ¿¡ ÀÇÇØ ÀνºÅϽºÈ­ µÈ ¸ðµç DBI ¿¬°á °³Ã¼ÀÇ ±âº» Ŭ·¡½ºÀÔ´Ï´Ù. dbi :: babyconnect ÀνºÅϽº´Â µ¥ÀÌÅͺ£À̽º Çڵ鷯 ¼Ó¼º°ú ƯÁ¤ µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ È°¼º DBI ¿¬°á ÇÚµéÀ» º¸À¯ÇÏ´Â °´Ã¼ÀÔ´Ï´Ù. ÇöÀç ¸ðµâÀº DBD°¡·Îµå ÇÒ ¼öÀÖ´Â ¸¹Àº µå¶óÀ̹ö¸¦ Áö¿øÇÏÁö¸¸ DBD :: Oracle µå¶óÀ̹ö¿Í DBD :: ODBC µå¶óÀ̹ö¸¦ »ç¿ëÇÏ¿© Á¦ÇÑµÈ Å×½ºÆ®°¡ÀÖ´Â DBD :: MySQLÀ» »ç¿ëÇÏ¿© Å×½ºÆ®µÇ¾ú½À´Ï´Ù. Ŭ·¡½º´Â ±âº» ¸Þ¼Òµå¸¦ ĸ½¶È­ÇÕ´Ï´Ù. µ¥ÀÌÅͺ£À̽º¿¡¼­ µ¥ÀÌÅ͸¦ »ðÀÔ, ¾÷µ¥ÀÌÆ® ¹× °¡Á® ¿À±â À§ÇØ »ç¿ëÀÚ°¡ ÇÁ·Î±×·¡¹Ö ÇÒ ¼öÀÖ´Â ¸¹Àº DBI ¸Þ¼ÒµåÀÇ º¹À⼺À» ¼û ±é´Ï´Ù. ÇÁ·Î±×·¡¸Ó´Â µ¥ÀÌÅ͸¦ ¹ÙÀεùÇϰųª FETCH ¸Þ¼ÒµåÀÇ FETCH ¸Þ¼Òµå¸¦ »ç¿ëÇÒ ÇÊ¿ä°¡ ¾ø½À´Ï´Ù. ¸Þ¼Òµå´Â ¸ðµç µ¥ÀÌÅͺ£À̽º¿¡¼­ ÀÛµ¿ÇؾßÇϸç ÇöÀç MySQL ¹× Oracle.Synopsis´Â DBI :: BabyConnect¸¦ »ç¿ëÇÏ¿© Å×½ºÆ®µÇ¾ú½À´Ï´Ù. # dbi :: babyconnect °´Ã¼¸¦ ¾òÀ¸·Á¸é # database descriptor babydb_001 my $ bbconn = dbi :: babyconnect-> new ( 'babydb_001'); # /tmp/error.log $ BBConn-> hooherError ( ">> / tmp / error.log")¿¡ Ãß°¡ ÇÒ ¸ðµç stderrÀ» Á÷Á¢ÇϽʽÿÀ. # / etmp/db.log¿¡ ÃßÀû Á¤º¸¸¦ Ãß°¡ÇÏ°í DBI :: ÃßÀû ·¹º§ 1 $ bbconn-> ÈÅ Æ®·¹ÀÌ½Ì ( ">> / tmp / db.log", 1)À¸·Î ¼³Á¤ÇÕ´Ï´Ù. # test_table.mysql¿¡¼­ ÄÚµåÈ­ µÈ ½ºÅ°¸¶¸¦ ±â¹ÝÀ¸·Î Å×À̺í Table1À» ÀÛ¼ºÇϽʽÿÀ. MY $ SQL = QQ {Table1 (DataString, DataNum, Image, RecordDate_T) °ª (?,?,?, sysdate ())¿¡ »ðÀÔ}}; $ BBCONN-> SQLBND ($ SQL, $ DATASTR, 1000, $ IMGGIF); ¿ä±¸ »çÇ× : ¡¤ Perl.


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