I want writing a procedure in MySQL which searching a UserId which we write example
call NEW_PROCEDURE(2)
where 2 = UserId
which we want search in all tables. I have an idea but I dont know how do it. First we must search all columns in database where column_name = UserId
and Second we must search a value that we called in the procedure and UserId = our value
Can somebody help me ?