我還是新來實現在我的db_design連接,我不知道,如果在所有這些SQL是有效的。這個SQL有效嗎?
"SELECT * FROM notes JOIN small_note ON notes_id = '$id' AND authname = '$author' AND bookname = '$book' AND user = '$username'"
有點更容易閱讀這樣的:
"SELECT * FROM notes
JOIN small_note ON notes_id = '$id'
AND authname = '$author'
AND bookname = '$book'
AND user = '$username'";
你可以顯示你的這兩個表的數據庫結構? – antyrat 2010-03-03 15:10:45