Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この行が DataGrid で何も返さない理由がわかりませんが、1 つの SQL クエリ (ダブル SELECT ではない) を使用すると正常に動作します。
Dim DataAdapterInb As New MySqlDataAdapter("SELECT * FROM (SELECT * From inbox WHERE receiverid='" & ID & "') LIMIT 0,5;", MySqlConnection)
更新された回答を確認してください。
Dim DataAdapterInb As New MySqlDataAdapter ("SELECT t.* FROM //^Changed (SELECT * From inbox WHERE receiverid='" & ID & "')t LIMIT 0,5;", MySqlConnection) //^Changed