简体   繁体   English

mysql-如何仅使用空格输入记录

[英]mysql - how to enter the record with only whitespace

I want to enter the record with white-space as a record in MySQL. 我想输入带有空格的记录作为MySQL中的记录。 I had tried to enter it through shell and phpmyadmin, the record enters but when I try to retrieve the record it returns as null. 我曾尝试通过shell和phpmyadmin输入它,但记录会输入,但是当我尝试检索记录时,它会返回null。 I had also set the column null = no even then returns nothing. 我还设置了列null = no,甚至什么也没有返回。

code is below through shell and php: 下面的代码通过外壳和PHP:

insert into first_replace(to_replace, with_replace) values(".", " ");

当创建mysql表行时启用NULL或编辑行并启用NULL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM