close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
用visual studio連MYSQL資料庫時sql語法
Jan 4th 2015, 14:03

知識問題|

發問者: 奶睿 ( 初學者 5 級)
發問時間: 2015-01-04 22:03:42 ( 還有 4 天發問到期 )
解答贈點: 20 ( 共有 0 人贊助 )
回答: 0 0

我用visual studio連MYSQL資料庫時想用textbox打入關鍵字
然後從資料庫的特定table找資料,如果是連sql server照常理語法為
SELECT * FROM BOOK WHERE Bname LIKE @參數名稱(@參數名稱連接到textbox)
但是用MYSQL作卻變成
SELECT * FROM [BOOK] WHERE [Bname] LIKE "%" + ? + "%"
我只知道要把[]刪掉,但之後不管怎麼修都是錯的
請各位大大幫幫忙

目前沒有資料

目前沒有資料

馬上按讚  加入 Yahoo! 奇摩 知識+  粉絲團

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 kkoxhcfqr4v4f 的頭像
    kkoxhcfqr4v4f

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

    kkoxhcfqr4v4f 發表在 痞客邦 留言(0) 人氣()