Skip to content

Tag: sql

searching for and updating a wildcard/unicode chacracter using SQL

I have a string stored in a SQL databse that contains a wildcard unicode character followed by whitepsapce before the text I suspect in an attempt to try and mock right to left text and I need to remove the wildcard character however attemptng to search for the characters with a like clause does not locate it…

Can I use DECLARE as an SQL statement in PHP

I am trying to execute a query in PHP, but this code wouldn’t work for some reason, it doesn’t detect the keywords at all(DECLARE, SELECT, WHERE). Is there anything I can do and after all can I even use DECLARE in PHP as a mySQLi statement. $sql2 =”DECLARE @MaxID INT; SELECT @MaxID = MAX(pro…