user input in mysql code example
Example: input in mysql
-- Example for MysQL:
SET @my_Id:=30;
SELECT * FROM my_table WHERE id=@my_Id;
-- Example in Oracle:
SELECT * FROM my_table WHERE id = :my_id;
-- Example for MysQL:
SET @my_Id:=30;
SELECT * FROM my_table WHERE id=@my_Id;
-- Example in Oracle:
SELECT * FROM my_table WHERE id = :my_id;