0

I have been searching and i could not find it still. Can i know is there any reference that show on how to create a table using c# in visual studio for oracle databse. This means that using visual studio c# to create the table for Oracle insted doing it in the sqldeveloper using SQL statement.

1 Answer 1

4
using (OracleConnection con = new OracleConnection("user id=You;password=Pass;data source=DB"))
{
    con.Open();
    using (OracleCommand cmd = new OracleCommand("create table YourTableName(ID number)", con))
    {
        cmd.ExecuteNonQuery();
    }
}

Something like this.

Sign up to request clarification or add additional context in comments.

1 Comment

sir, you are great, i just it and working. Edi the table name and other things i think i can do already as i got this idea. Sir thanks again. Thanks so much sir.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.