一直都用mysql數(shù)據(jù)庫
今天發(fā)現(xiàn)一個(gè)奇怪的顯現(xiàn):
以前在查詢數(shù)據(jù)庫的時(shí)候都這樣寫:
select password from studenttable where username = caobaoshusheng
沒出現(xiàn)過什么問題.今天這樣用就出問題了.提示找不到列.找了很久才改過來:
select password from studenttable where username = 'caobaoshusheng'
怎么回事以前行現(xiàn)在又不行了 。我想請(qǐng)問一下各位,標(biāo)準(zhǔn)的寫法是哪種!