查找到一条记录,其中一个字段的值类型为text,通过怎样的方法将其取出来呢?

解决方案 »

  1.   

    mysql> create table tb_text(content text);
    Query OK, 0 rows affected (0.57 sec)mysql> insert into tb_text values ('fdsafdsafsdaf中国');
    Query OK, 1 row affected (0.09 sec)mysql> select * from tb_text;
    +-------------------+
    | content           |
    +-------------------+
    | fdsafdsafsdaf中国 |
    +-------------------+
    1 row in set (0.01 sec)直接读就可以了。
      

  2.   

    好奇怪的问题哦,为毛只针对text,又为毛需要找出text