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 中没有返回任何内容,而当我使用一个 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