File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ SQL 注入防护
21
21
传递给查询构建器的参数可以是:
22
22
1. **标识符 **,例如字段(或表)名
23
23
2. 它们的 **值 **
24
- 3. **SQL 字符串**的一部分
24
+ 3. **SQL 字符串 ** 的一部分
25
25
26
26
查询构建器默认会对所有 **值 ** 进行转义。
27
27
@@ -376,7 +376,7 @@ $builder->like()
376
376
377
377
.. literalinclude :: query_builder/039.php
378
378
379
- 如果要控制通配符(**% **)的位置,可以使用可选的第三个参数。选项为 ``before ``、``after `` 和 ``both``(默认)。
379
+ 如果要控制通配符( **% ** )的位置,可以使用可选的第三个参数。选项为 ``before ``、``after `` 和 ``both `` (默认)。
380
380
381
381
.. literalinclude :: query_builder/040.php
382
382
@@ -519,7 +519,7 @@ $builder->havingLike()
519
519
520
520
.. literalinclude :: query_builder/060.php
521
521
522
- 如果要控制通配符(**% **)的位置,可以使用可选的第三个参数。选项为 ``before ``、``after `` 和 ``both``(默认)。
522
+ 如果要控制通配符( **% ** )的位置,可以使用可选的第三个参数。选项为 ``before ``、``after `` 和 ``both `` (默认)。
523
523
524
524
.. literalinclude :: query_builder/061.php
525
525
@@ -742,7 +742,7 @@ $builder->insert()
742
742
$builder->ignore()
743
743
------------------
744
744
745
- 根据你提供的数据生成 insert ignore 字符串并运行查询。因此,如果具有相同主键的条目已存在,则不会插入该查询。你可以选择向该方法传递 **布尔值 **。也可用于 **insertBatch **、**update ** 和 **delete**(在支持时)。以下是使用上述示例数组的示例:
745
+ 根据你提供的数据生成 insert ignore 字符串并运行查询。因此,如果具有相同主键的条目已存在,则不会插入该查询。你可以选择向该方法传递 **布尔值 **。也可用于 **insertBatch **、**update ** 和 **delete ** (在支持时)。以下是使用上述示例数组的示例:
746
746
747
747
.. literalinclude :: query_builder/078.php
748
748
Original file line number Diff line number Diff line change @@ -736,11 +736,13 @@ alpha_dash 否 若字段包含非字母数字、下划线
736
736
(ASCII)则失败。
737
737
alpha_numeric 否 若字段包含非 ASCII 字母数字字符则失败。
738
738
alpha_numeric_punct 否 若字段包含非字母数字、空格或以下标点则失败:
739
- ``~``(波浪符)、 ``!``(叹号)、``#``(井号)、
740
- ``$``(美元符)、``%``(百分号)、
741
- ``&``(与符号)、``*``(星号)、 ``-``(短横)、
742
- ``_``(下划线)、``+``(加号)、``=``(等号)、
743
- ``|``(竖线)、 ``:``(冒号)、 ``.``(句点)。
739
+ ``~``(波浪符)、 ``!``(叹号)、
740
+ ``#``(井号)、``$``(美元符)、
741
+ ``%``(百分号)、``&``(与符号)、
742
+ ``*``(星号)、 ``-``(短横)、
743
+ ``_``(下划线)、``+``(加号)、
744
+ ``=``(等号)、``|``(竖线)、
745
+ ``:``(冒号)、 ``.``(句点)。
744
746
alpha_numeric_space 否 若字段包含非字母数字或空格(ASCII)则失败。
745
747
alpha_space 否 若字段包含非字母或空格(ASCII)则失败。
746
748
decimal 否 若字段包含非十进制数则失败
You can’t perform that action at this time.
0 commit comments