$ and # for mybatis

I can't tell the difference between $ and # which is a string and which is a number

$ is a number

# is a string

Let's see the difference in practice. # when running

#When is it compiled? , $ is a numeric value when compiled

# Effectively prevent Sql injection, while $ can't.

Use it for your own records. Gradually develop a good habit of recording

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325817653&siteId=291194637