我正在WordPress中使用WYSIWYG构建器Unyson。我将网站移到了新域,并发现Unyson在数据库中将正斜杠/
保存为{\ {1}}之前带有转义反斜杠。
我需要搜索具有不安全HTTP的特定URL,并将其替换为HTTPS,但是如果我搜索:
\/
它不返回任何内容。
如果我仅搜索SELECT * from table_name WHERE column_name like '%http\/\/www.domain.com%';
:
\/\/
我确实得到回报。
但是我需要搜索具有HTTP的特定域并将其替换为HTTPS。
在like语句的中间使用SELECT * from table_name WHERE column_name like '%\/%';
不会返回任何内容。我尝试使用\/\/
,但不起作用。
如何搜索字符串中带有\\\/
的域并获得结果?
答案 0 :(得分:0)
您可以尝试使用NOT LIKE '%的https'
#include <string.h>
#include "pch.h"
#include <iostream.h>
#include <conio.h>
using namespace std;
int main()
{
string input;
cout << "Enter PW" << endl;
cin >> input;
cout << input << "was what you set" << endl;
}