当前位置:网站首页>The binary string mode is displayed after the value with the field type of longtext in MySQL is exported
The binary string mode is displayed after the value with the field type of longtext in MySQL is exported
2022-07-05 19:12:00 【1024 questions】
MySQL Field type is longtext The binary string is displayed after the value of is exported
Use MySQL Of CAST() Function or CONVERT() function
MySQL Basic sentences and usage of
WHERE Clause : Condition search
UPDATE Clause : Data update
DELETE Clause : Delete data
LINK Clause : Metacharacter lookup
UNION The operator : Joint query results
MySQL Field type is longtext The binary string is displayed after the value of is exportedMySQL The field type in is longtext The field value of is saved as Blob (Binary large objects), So export sql Or will sql When querying data exported to other formats , You need to convert the field type in advance , Conversion mode :
Use MySQL Of CAST() Function or CONVERT() functiongrammar :
CAST(value as type);CONVERT(value, type);Example :
SELECT CAST(t.longtextField AS CHAR) AS longtextFieldFROM tableName t;SELECT CONVERT(t.longtextField, CHAR) AS longtextFieldFROM tableName t;MySQL Basic sentences and usage of WHERE Clause : Condition search SELECT Column name ·· FROM The name of the table ·· WHERE Conditions (AND)(OR)explain :
You can use one or more tables in a query statement , Use commas between tables , Division , And use WHERE Statement to set the query conditions .
You can WHERE Clause to specify any condition .
You can use AND perhaps OR Specify one or more conditions .
Be careful : if WHERE add BINARY, Then the field value will be case sensitive .
UPDATE Clause : Data updateUPDATE The name of the table SET Column name = The new value WHERE Column name = Certain value explain :
Choose to update multiple fields at the same time .
stay WHERE Post specified condition .
DELETE Clause : Delete dataDELETE FROM The name of the table WHERE Column name = value explain :
If not specified WHERE Clause ,MySQL All records in the table will be deleted .
You can WHERE Clause to specify any condition
You can delete records once in a single table .
LINK Clause : Metacharacter lookupSELECT Column name FROM table_nameWHERE field1 LIKE condition1 [AND [OR]] filed2 = 'somevalue'explain :
stay WHERE Clause to specify any condition .
stay WHERE Used in clauses LIKE Clause .
You can use LIKE Clause instead of equal sign =.
LIKE Usually with % Use together , Similar to a metacharacter search .
You can use AND perhaps OR Specify one or more conditions .
You can DELETE or UPDATE Use in command WHERE...LIKE Clause to specify the condition .
'%a' // With a Data at the end 'a%' // With a Initial data '%a%' // contain a The data of '_a_' // Three and the middle letter is a Of '_a' // Two characters and the ending letter is a Of 'a_' // It's two and starts with a Of UNION The operator : Joint query results SELECT Column name FROM tables[WHERE conditions]UNION [ALL | DISTINCT]SELECT Column name FROM tables[WHERE conditions];explain :
expression1, expression2, ... expression_n: Columns to retrieve .
tables: Data table to retrieve .
WHERE conditions: Optional , Retrieve conditions .
DISTINCT: Optional , Delete duplicate data in result set . By default UNION The operator has removed the duplicate data , therefore DISTINCT Modifiers have little effect on the results .
ALL: Optional , Return all result sets , Contains duplicate data .
The above is personal experience , I hope I can give you a reference , I also hope you can support the software development network .
边栏推荐
- Vagrant2.2.6 supports virtualbox6.1
- The era of Web3.0 is coming. See how Tianyi cloud storage resources revitalize the system to enable new infrastructure (Part 2)
- Shang Silicon Valley Shang preferred project tutorial release
- Pandora IOT development board learning (HAL Library) - Experiment 8 timer interrupt experiment (learning notes)
- 尚硅谷尚优选项目教程发布
- Is the performance evaluation of suppliers in the fastener industry cumbersome? Choose the right tool to easily counter attack!
- JS解力扣每日一题(十二)——556. 下一个更大元素 III(2022-7-3)
- 从外卖点单浅谈伪需求
- 彻底理解为什么网络 I/O 会被阻塞?
- 国内低代码开发平台靠谱的都有哪些?
猜你喜欢

HiEngine:可媲美本地的云原生内存数据库引擎

Why can't Bi software do correlation analysis? Take you to analyze

android中常见的面试题,2022金九银十Android大厂面试题来袭

The relationship between temperature measurement and imaging accuracy of ifd-x micro infrared imager (module)

Debezium系列之:记录mariadb数据库删除多张临时表debezium解析到的消息以及解决方法

Blue sky drawing bed Apple quick instructions

Analysis of postman core functions - parameterization and test report

Can Leica capture the high-end market offered by Huawei for Xiaomi 12s?

块编辑器如何选择?印象笔记 Verse、Notion、FlowUs

5. 数据访问 - EntityFramework集成
随机推荐
Django使用mysqlclient服务连接并写入数据库的操作过程
2022全网最全的腾讯后台自动化测试与持续部署实践【万字长文】
Thoroughly understand why network i/o is blocked?
Pandora IOT development board learning (HAL Library) - Experiment 8 timer interrupt experiment (learning notes)
Windows Oracle 开启远程连接 Windows Server Oracle 开启远程连接
Redhat7.4 configure Yum software warehouse (rhel7.4)
Tupu software digital twin smart wind power system
EMQX 5.0 正式发布:单集群支持 1 亿 MQTT 连接
图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统
如何实现游戏中的在线计时器和离线计时器
华为让出的高端市场,小米12S靠徕卡能抢到吗?
Oracle fault handling: ora-10873:file * needs to be either taken out of backup or media recovered
企业级数据安全,天翼云是这样理解的
Optimization of middle alignment of loading style of device player in easycvr electronic map
Shang Silicon Valley Shang preferred project tutorial release
华律网牵手观测云,上线系统全链路可观测平台
2022年5月腾讯云开发者社区视频月度榜单公布
vagrant2.2.6支持virtualbox6.1版本
块编辑器如何选择?印象笔记 Verse、Notion、FlowUs
鱼和熊掌可以兼得!天翼云弹性裸金属一招鲜!