1

我不知道为什么这一行在 DataGrid 中没有返回任何内容,而当我使用一个 SQL 查询(不是双重 SELECT)时它工作正常:

Dim DataAdapterInb As New MySqlDataAdapter("SELECT * FROM (SELECT * From inbox WHERE receiverid='" & ID & "') LIMIT 0,5;", MySqlConnection)
4

1 回答 1

2

请检查更新的答案。

Dim DataAdapterInb As New MySqlDataAdapter
("SELECT t.* FROM 
       //^Changed
(SELECT * From inbox WHERE receiverid='" & ID & "')t
LIMIT 0,5;", MySqlConnection)                    //^Changed
于 2013-07-09T13:22:55.220 回答