String sql_del="delete from man where cabNum & gt;='" + txtStartNum. Text + "' and cabNum & lt; '" + txtEndNum. Text + "' ";
It seems wrong,
CodePudding user response:
The delete from man where cabNum Between '3000' And '5000'
CodePudding user response:
String type is unable to directly compare the size of the you and cast (field as int) try againCodePudding user response:
DELETE FROM man where CAST (cabNum AS INT) BETWEEN 3000 AND 5000,both should be ok
The DELETE FROM man where CAST (cabNum AS INT) & gt;=3000 AND CAST (cabNum AS INT) & lt;=5000