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. ORACLE SQL statement in C# !! ??

ORACLE SQL statement in C# !! ??

Scheduled Pinned Locked Moved ASP.NET
csharpdatabaseoraclehelpquestion
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.
  • N Offline
    N Offline
    Naif_Prof
    wrote on last edited by
    #1

    Dears I need to write the following ORACLE SQL statement in C# in page of ASP as string Select emp_name as “employees Name” , emp_Add as “address” , dept as “department” From test.emp_tab ; Im using as to rename the column name in datagrid Any one help me to write it by C# as string Notes we in oracle to rename column name we have to use “ ” same as in defining string in C# Thanks

    A 1 Reply Last reply
    0
    • N Naif_Prof

      Dears I need to write the following ORACLE SQL statement in C# in page of ASP as string Select emp_name as “employees Name” , emp_Add as “address” , dept as “department” From test.emp_tab ; Im using as to rename the column name in datagrid Any one help me to write it by C# as string Notes we in oracle to rename column name we have to use “ ” same as in defining string in C# Thanks

      A Offline
      A Offline
      Akhilesh Yadav
      wrote on last edited by
      #2

      try this string SqlQry; SqlQry = "Select emp_name as ""employees Name"" , emp_Add as ""address"" , dept as ""department"" From test.emp_tab";

      Regards, Akhilesh Yadav

      N 1 Reply Last reply
      0
      • A Akhilesh Yadav

        try this string SqlQry; SqlQry = "Select emp_name as ""employees Name"" , emp_Add as ""address"" , dept as ""department"" From test.emp_tab";

        Regards, Akhilesh Yadav

        N Offline
        N Offline
        Naif_Prof
        wrote on last edited by
        #3

        Dear Akhilesh Yadav its not working by after a lot of time the correct syntax is SqlQry = "Select emp_name as \"employees Name\" , emp_Add as \"address\" , dept as \"department\" From test.emp_tab"; so we use \ to cancel meaning of “ in string thanks

        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