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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Please help me in ado.net

Please help me in ado.net

Scheduled Pinned Locked Moved ASP.NET
databasehelpcsharptutorialquestion
5 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.
  • A Offline
    A Offline
    abglorie
    wrote on last edited by
    #1

    How to using val() in sql? mycode datatype is string values as "MS12", "MW10", ... My query is "Select * from FILE1 where val(substring(mycode,3,2))=10" Sql say error as val is not recognised function name Kindly tell your suggesions. Thanking you abglorie

    A A 3 Replies Last reply
    0
    • A abglorie

      How to using val() in sql? mycode datatype is string values as "MS12", "MW10", ... My query is "Select * from FILE1 where val(substring(mycode,3,2))=10" Sql say error as val is not recognised function name Kindly tell your suggesions. Thanking you abglorie

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      which database you are working? Please specify

      Abhishek Sur

      A 1 Reply Last reply
      0
      • A Abhishek Sur

        which database you are working? Please specify

        Abhishek Sur

        A Offline
        A Offline
        abglorie
        wrote on last edited by
        #3

        sql2000 database is using

        1 Reply Last reply
        0
        • A abglorie

          How to using val() in sql? mycode datatype is string values as "MS12", "MW10", ... My query is "Select * from FILE1 where val(substring(mycode,3,2))=10" Sql say error as val is not recognised function name Kindly tell your suggesions. Thanking you abglorie

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          abglorie wrote:

          Sql say error as val is not recognised function name

          Thats because it isn't. Bet you copied this from excel or Access. Just look up substring in sql help.

          Bob Ashfield Consultants Ltd

          1 Reply Last reply
          0
          • A abglorie

            How to using val() in sql? mycode datatype is string values as "MS12", "MW10", ... My query is "Select * from FILE1 where val(substring(mycode,3,2))=10" Sql say error as val is not recognised function name Kindly tell your suggesions. Thanking you abglorie

            A Offline
            A Offline
            Abhishek Sur
            wrote on last edited by
            #5

            write like this Select * from FILE1 where Cast(substring(mycode,3,2) as int)=10

            Abhishek Sur

            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