gpt4 book ai didi

php - MySQL:仅显示总值的 200 个字符

转载 作者:可可西里 更新时间:2023-11-01 06:55:09 25 4
gpt4 key购买 nike

我有一个 MySQL 表,其中有一个名为 description 的字段,记录如下:

Former cop Brian O'Conner partners with ex-con Dom Toretto on the opposite side of the law.Since Brian and Mia Toretto broke Dom out of custody, they've blown across many borders to elude authorities. Now backed into a corner in Rio de Janeiro, they must pull one last job in order to gain their freedom. As they assemble their elite team of top racers, the unlikely allies know their only shot of getting out for good means confronting the corrupt businessman who wants them dead. But he's not the only one on their tail. Hard-nosed federal agent Luke Hobbs never misses his target. When he is assigned to track down Dom and Brian, he and his strike team launch an all-out assault to capture them. But as his men tear through Brazil, Hobbs learns he can't separate the good guys from the bad.

如何显示它的前 200 个字符?像这样:

Former cop Brian O'Conner partners with ex-con Dom Toretto on the opposite side of the law.Since Brian and Mia Toretto broke Dom out of custody, they've blown across many borders to elude authorities.

最佳答案

SELECT LEFT(description, 200)
FROM yourtable

相关文档here .

关于php - MySQL:仅显示总值的 200 个字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8010861/

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