我正在尝试替换消息并解密消息,我尝试了查询:
select
aes_decrypt(message,'Password')as message,
replace(message,'#TD1#','\n\n') as message
from
daily
limit 1;
但它返回 2 列。
我正在尝试替换消息并解密消息,我尝试了查询:
select
aes_decrypt(message,'Password')as message,
replace(message,'#TD1#','\n\n') as message
from
daily
limit 1;
但它返回 2 列。
尝试这个
SELECT REPLACE(AES_DECRYPT(message, 'Password'), '#TD1#', '\n\n') AS message
FROM daily
LIMIT 1;
您在选择中有 2 列,它们都命名为 message。像这样试试
SELECT REPLACE(AES_DECRYPT(message,'Password'), '#TD1#','\n\n' ) Message
FROM daily
LIMIT 1;
或者
SELECT AES_DECRYPT(REPLACE(message, '#TD1#','\n\n' ),'Password') Message
FROM daily
LIMIT 1;