Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Guaranteed stumper...truncating last 3 characters on a string...

Guaranteed stumper...truncating last 3 characters on a string...

Scheduled Pinned Locked Moved Database
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    new_phoenix
    wrote on last edited by
    #1

    Hi, guys. I have a string that represents a path to a file. However, the file is the wrong type and needs to be converted to a different file type. I need the file to be a .CSV file instead of a .XLS file type. If I had a string representing the entire path to the file, including the .XLS, how would I truncate the .XLS and replace it with .CSV? :confused::confused::confused: -- modified at 14:19 Friday 9th November, 2007

    A 1 Reply Last reply
    0
    • N new_phoenix

      Hi, guys. I have a string that represents a path to a file. However, the file is the wrong type and needs to be converted to a different file type. I need the file to be a .CSV file instead of a .XLS file type. If I had a string representing the entire path to the file, including the .XLS, how would I truncate the .XLS and replace it with .CSV? :confused::confused::confused: -- modified at 14:19 Friday 9th November, 2007

      A Offline
      A Offline
      andyharman
      wrote on last edited by
      #2

      select reverse(substring(reverse('C://hello/world.txt'), 5, 100))

      P 1 Reply Last reply
      0
      • A andyharman

        select reverse(substring(reverse('C://hello/world.txt'), 5, 100))

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        So - not stumped by the guaranteed stumper then.;)

        Deja View - the feeling that you've seen this post before.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups