https://www.coder.work/article/1666629
    https://blog.csdn.net/u012572815/article/details/77674235

    简单的SQL问题::代表什么?

    例如:

    1. SELECT * FROM myTable
    2. WHERE Employee_column = :P_EmplId;

    当您不知道:叫什么名称时,它并不是很容易通过Google进行搜索。即使在这里搜索也无济于事。如果有任何区别,我正在使用Oracle 11g。
    这是一个bind variable:

    A placeholder in a SQL statement that must be replaced with a valid value or value address for the statement to execute successfully. By using bind variables, you can write a SQL statement that accepts inputs or parameters at run time. The following example shows a query that uses v_empid as a bind variable:

    在写sql语句的时候,遇到了=后面跟着:的问题,想不通为什么要加:

    问了一下,才知道,:是一个占位符,后面的字段是传参进来的,

    2017.10.13 编辑

    在java中的框架中,到层进行sql语句拼接的时候会用到,出现了“=11:的情况,”=:“的的用途?

    1、防止sql注入

    未防止sql注入的情况,通常在sql语句组装的时候,不会直接传值。

    通过”=:变量名“的方式,在具体调用的时候传入参数,是防止sql注入的写法

    2、提高性能
    ————————————————
    版权声明:本文为CSDN博主「戴——-」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/u012572815/article/details/77674235