I have several procedure with VARCHAR parameters as input, when i upload a new database to my server, i have a problem with VARCHAR parameters as input.
That stored procedure changed string to ? (question sing)
For example i have this stored procedure:
CREATE PROCEDURE `sp_insert`(
IN _title VARCHAR(30))
BEGIN
INSERT INTO `myTable` SET `title` = _title
;END//
This query probably works like this:
INSERT INTO
myTableSETtitle= ‘???’
Why this problem occur?
This problem occur when my database was not utf8 collation before i import any data if you are using utf8 data in your text.
I hade to note that to remember this 3 steps for utf8 database: