tiny text and varchar

Posted on 2005-05-07
Last Modified: 2008-02-01
What is the different betawen Tinytex and Varchar? Please give me and example usr varchar and tiny text.
Question by:teera
    1 Comment
    LVL 10

    Accepted Solution

    Although both tinytext and varchar can hold upto maximum of 256 characters, the difference is that varchar removes the leading and the trailing blankspaces whereas the tinytext keeps up as it it.
    Example: create a table like this.

    create table temp (col1 text, col2 varchar(10));

    Now, insert values into the table.
    insert into temp values('  text  ', '  text  ');

    Check the database to see the values stored.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
    Creating and Managing Databases with phpMyAdmin in cPanel.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now