»Ë»Ñ Æ÷·³
°³¹ßÀÚÆ÷·³ ÀÔ´Ï´Ù.
  • ºÏ¸¶Å© ¾ÆÀÌÄÜ

ÀÚ¹Ù SQL SERVER 2008 ¿¬µ¿Áß¿¡ º¯¼öÀÔ·Â¹Þ¾Æ °Ë»öÇÏ´Â ¹æ¹ýÁú¹®4

  • Kochel
  • µî·ÏÀÏ 2015-06-08 09:56
  • Á¶È¸¼ö 497
MYSQL ¿¡¼­´Â import com.mysql.jdbc.PreparedStatement; ÇÑ µÚ

PreparedStatement ps = (PreparedStatement) conn.prepareStatement("SELECT modelname FROM manage WHERE modelname LIKE CONCAT('%', ?, '%')");

    ps.setString(1, tfSearch.getText());
    ResultSet rs = ps.executeQuery();   ÀÌ·±½ÄÀ¸·Î ¼º°øÇß½À´Ï´Ù..

DB¸¦ ¹Ù²ã¾ßÇÏ´Â »óȲÀ̾ SQL SERVER 2008·Î ¿¬µ¿À» ÇÏ¿´½À´Ï´Ù.

MSSQL¿¡¼­´Â ¾î¶²½ÄÀ¸·Î ¼Ò½ºÃ³¸®¸¦ ÇؾßÇÒÁö µµÀúÈ÷ °¨ÀÌ ¾ÈÀâÈ÷³×¿ä ..

±×¸®°í º¯¼ö´Â || ** || ÀÌ·±½ÄÀ¸·Î ¹Þ¾Æ¾ßÇϳª¿ä?

=>  tfSearch¸¦ ÅëÇؼ­ ÀԷ¹ÞÀº Äõ¸®¸¦ Á¶È¸ÇÏ·Á°í ÇÕ´Ï´Ù.. µµ¿ÍÁÖ¼¼¿ä

0
ÃßõÇϱ⠴ٸ¥ÀÇ°ß 0
|
°øÀ¯¹öÆ°

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 °íµµ¸®Àλý

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 Kochel

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 Kochel

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 Kochel
  • ¾Ë¸² ¿å¼³, »óó ÁÙ ¼ö ÀÖ´Â ¾ÇÇÃÀº »ï°¡ÁÖ¼¼¿ä.
©¹æ »çÁø  
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û ¸ñ·Ïº¸±â