I am trying to understand a script to implement new functions and options. In order to search in sql tables they used the following syntax
$sqlquery = "SELECT DISTINCT \"Name\", \"FileName\", \"Status\", lower(\"Name\") FROM \"" . $SearchedTable . "\" WHERE ";
$sqlquery=$sqlquery." (\"Name\" ~* '".$text[$i]."' OR \"DNA\" ~* '".$text[$i]."')";
- What I would like to know is why they use \"Name\" (I read somewhere that it has something to do with sql injections).
- I also couldn't find the reason why to use this syntax ~* instead of =. Or does it means something else?