cuting text with sql?

Discussion in 'PHP' started by Derpost, Jun 5, 2011.

  1. #1
    i want to select first 100 character in text column with SQL.
    i doesnt want substr function.
     
    Derpost, Jun 5, 2011 IP
  2. Minimal Hank

    Minimal Hank Peon

    Messages:
    136
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    SELECT LEFT (column, 100) FROM table
    Code (markup):
     
    Minimal Hank, Jun 5, 2011 IP