Avoid SQL injection in MS Access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I write this on Borland Delphi:

command = 'select * from mytable where name = "' + Edit1.Text + '"';

Users can write SQL injection commands in Edit1.Text.
How to avoid this?
 
Write a function to remove the unwanted commands and symbols.

Especially the OR, DELETE & UPDATE.
 
Back
Top