|
发表于 2020-1-14 10:45:01
|
显示全部楼层
SQL语句写错
SqlDataAdapter mysqlSqlDataAdapter1 = new SqlDataAdapter("select top 2 * from aspnet_PhoneItem where Type='音乐'", mysqlSqlConnection);
to
SqlDataAdapter mysqlSqlDataAdapter1 = new SqlDataAdapter("select top 2 * from aspnet_PhoneItem where Type="+"音乐", mysqlSqlConnection);
SqlDataAdapter mysqlSqlDataAdapter2 = new SqlDataAdapter("select top 2 * from aspnet_PhoneItem where Type="+"智能", mysqlSqlConnection);
to
SqlDataAdapter mysqlSqlDataAdapter2 = new SqlDataAdapter("select top 2 * from aspnet_PhoneItem where Type="+"智能", mysqlSqlConnection);
|
|