gpt4 book ai didi

powershell - 如何忽略转义符?

转载 作者:行者123 更新时间:2023-12-03 00:23:35 38 4
gpt4 key购买 nike

这是我的弦

$mystring = "INSERT INTO `glpi_networkports` (`entities_id`,`is_recursive`,`items_id`,`itemtype`,`comment`,`logical_number`,`name`,`networkinterfaces_id`,`ip`,`mac`,`netmask`,`gateway`,`subnet`,`netpoints_id`)"

我该如何忽略逃生?

因为它给了我这样的字符串:
INSERT INTO glpi_networkports (entities_id,is_recursive,items_id,itemtype,comment,logical_number,
ame,
etworkinterfaces_id,ip,mac,
etmask,gateway,subnet,
etpoints_id)

谢谢

最佳答案

使用引号或将转义字符加倍:

$mystring = "INSERT INTO 'glpi_networkports' ..."
$mystring = "INSERT INTO ``glpi_networkports`` ...

关于powershell - 如何忽略转义符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17721035/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com