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. Web Development
  3. ASP.NET
  4. How to give keywords in a query in .NET

How to give keywords in a query in .NET

Scheduled Pinned Locked Moved ASP.NET
databasehelpcsharpasp-nettutorial
3 Posts 2 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.
  • M Offline
    M Offline
    micydon
    wrote on last edited by
    #1

    Hi I am using ASP.NET and VB as code behind. My database is Sybase. and sql. Now my problem is i want to use a select query where one fields name is date(this is keyword in Sybase). when i used sql i hve given this like "Select * from mytab where [date]='04/30/2007'" but this doesnt work for sybase . Can anybody pls help me how to use the keywords in query's Thanks in advance with regards Anitha

    N 1 Reply Last reply
    0
    • M micydon

      Hi I am using ASP.NET and VB as code behind. My database is Sybase. and sql. Now my problem is i want to use a select query where one fields name is date(this is keyword in Sybase). when i used sql i hve given this like "Select * from mytab where [date]='04/30/2007'" but this doesnt work for sybase . Can anybody pls help me how to use the keywords in query's Thanks in advance with regards Anitha

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      What is the field type you given in sybase ?


      printf("Navaneeth!!") www.w3hearts.com

      M 1 Reply Last reply
      0
      • N N a v a n e e t h

        What is the field type you given in sybase ?


        printf("Navaneeth!!") www.w3hearts.com

        M Offline
        M Offline
        micydon
        wrote on last edited by
        #3

        See i want to retrieve data from mytab according to the date. Like "Select * FROM mytab WHERE date='01/30/2005'" see while using sql i hve given the keywords in brackets like,[date],[user] etc. But i want to know how this is to be done if i use Sybase database.Please help me With Regards Micydon

        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