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
A

AHSAN111

@AHSAN111
About
Posts
5
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Getting unique combination of rows in SQL??
    A AHSAN111

    Try using the Distinct Keyword

    SELECT Distinct(A.x), A.Y FROM @TEST A, @TEST B WHERE A.X = B.y

    Database question database help

  • how to take a table name from a text box!
    A AHSAN111

    As I said, you need to use a validator to ensure that only allowable table names are used to construct the query. You can use javascript + regex or .net validation controls as it suites you.

    C# oracle tutorial question

  • how to take a table name from a text box!
    A AHSAN111

    the dropdown list would eliminate the facility of having tablenames according to user choices. This IMO is essential if we are dealing with a SQL Parser or a simillar application, or a situation where we need user-specified entity names in the database. We can use a textbox and employ reguler expressions / validation controls in order to eliminate the possibility of an incorrect tablename.

    C# oracle tutorial question

  • how to take a table name from a text box!
    A AHSAN111

    why did u downvote ?? please explain :)

    C# oracle tutorial question

  • how to take a table name from a text box!
    A AHSAN111

    Try the following:

    string q = "create table " + Textbox1.text + "(enum number,ename varchar2(10),sal number)";

    a better way (cleaner and easily readable) of doing it would be to use a local string variable to store the table name from the text box and concatenate the string using that variable.

    string temp = Textbox1.Text;
    string q = "create table "+temp+ " (enum number,ename varchar2(10),sal number)";

    C# oracle tutorial question
  • Login

  • Don't have an account? Register

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