【Excel】输入单引号

  首位输入:输入两个单引号

  拼接输入:可以引入输入

    举个例子:拼接一个SQL,values都是字符串,需要引号

=IF(
    OR(A2="",B2="",C2="",D2="",E2=""),
    "",
    "INSERT INTO EXCELTOPERSONINFOTEMP
    ("&A$1&","&B$1&","&C$1&","&D$1&","&E$1&")
    values
     ("&G$1&A2&G$1&",
      "&G$1&B2&G$1&",
      "&G$1&C2&G$1&",
      "&G$1&D2&G$1&",
      "&G$1&E2&G$1&");"
    )

  G1里面存的就是两个单引号

 

posted @ 2019-11-29 21:19  乡屯米卒  阅读(934)  评论(0编辑  收藏  举报