Use custom variables sql

Use custom variables sql

# Define the
set @ userid = "5418"; / * set variables userid * @ /

# to query the user registration information
the SELECT * from db_rg_2.b_user_extend_info
the WHERE user_id = @ userid;

Guess you like

Origin www.cnblogs.com/lisa2016/p/12168730.html