-
-
Save xx19941215/56e32637bd67c3d0113d81b5bb21b5a9 to your computer and use it in GitHub Desktop.
mysql预查询例子
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREPARE prod FROM "select count(*) as aggregate from `t_letter_dep` where `id` = ? and (`site_id` = ?)"; | |
set @p = '1; truncate table log_access;'; | |
set @q = '3'; | |
execute prod using @p,@q; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment