Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8993549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:12:56+00:00 2026-06-15T23:12:56+00:00

I am using Oracle 10 G database Drop Table yassin; Create Table yassin as

  • 0

I am using Oracle 10 G database

    Drop Table yassin; 
Create Table yassin as Select  
              sad_gen.key_dec,
              sad_gen.key_year,
              sad_gen.sad_typ_proc,
              sad_gen.sad_asmt_nber,
              sad_gen.key_cuo,
              sad_gen.sad_reg_nber,
              sad_gen.sad_reg_date,
              sad_gen.sad_asmt_date,
              sad_gen.sad_dec_date,
              sad_gen.sad_exporter,
              sad_gen.sad_stat_val,
              sad_gen.key_nber,
              sad_gen.sad_itm_total,
              sad_gen.sad_pack_total,
              sad_gen.sad_consignee,
              sad_gen.sad_cty_1dlp,
              sad_gen.sad_tra_cty,
              sad_gen.sad_cty_expcod,
              sad_gen.sad_cty_destcod,
              sad_gen.sad_tod_cod,
              sad_gen.sad_cur_cod,
              sad_gen.sad_tot_invoiced,
              sad_gen.sad_tra_cod1,
              sad_gen.sad_mot_bord,
              sad_gen.sad_cuo_bord,
              sad_gen.sad_total_taxes,
              sad_gen.sad_reg_year,
              sad_gen.sad_asmt_year,
              sad_gen.sad_rcpt_nber,
              sad_gen.sad_rcpt_date,
              sad_gen.sad_loc_goods,
              sad_gen.sad_lop_cod,
              sad_gen.sad_whs_time
              FROM   sad_gen
              WHERE  
                    sad_gen.sad_num=:X
                    AND   sad_gen.lst_ope='U';

                    SELECT  *  from yassin;

When I use it and SET parameter X VALUE IN .NET with OleDbDataAdabtor

The error I get is ORA-01036: illegal variable name/number

this is my function.
Query is upper is query
Para is sturct that keep parameter values
public DataTable GetTable(String Query,AsycudaParameter[] Para)
{

    OleDbConnection c = new OleDbConnection(ConnectionString);
    c.Open();

    OleDbDataAdapter da = new OleDbDataAdapter(Query, c);

    for (int b = 0; b < Para.Length; b++)
    {
        if (Query.Contains(Para[b].name))
        {
            if (Para[b].Type == TypeCode.String)
            {
                da.SelectCommand.Parameters.Add(new OleDbParameter(Para[b].name, OleDbType.VarWChar));
                da.SelectCommand.Parameters[da.SelectCommand.Parameters.Count - 1].Value = Para[b].value.ToString();

            }
            if (Para[b].Type == TypeCode.Decimal)
            {
                da.SelectCommand.Parameters.Add(new OleDbParameter(Para[b].name, OleDbType.Decimal));
                da.SelectCommand.Parameters[da.SelectCommand.Parameters.Count - 1].Value = decimal.Parse(Para[b].value.ToString());

            }
        }
    }
    DataTable dt = new DataTable();
    da.Fill(dt);


    c.Close();


    return dt;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:12:57+00:00Added an answer on June 15, 2026 at 11:12 pm

    Oracle does not allow bind variables in DDL. So you cannot use a bind variable in a CREATE TABLE statement. If you really want to create a table, you would have to hard-code the query in the DDL (that is, you would probably need to use string concatenation to build the DDL statement rather than using bind variables).

    Why would you want to create a table at runtime in your application in the first place? That is generally not something that you would want to do– tables should be created when you are installing your application, not at runtime.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: SELECT INTO using Oracle I have one table in my oracle database.
I'm using PHP 5.2 with Oracle Database 11.1. The code $query = oci_parse($conn, SELECT
Periodically when using pyodbc to create a connection to an oracle database, it kills
I am using oracle database.I want to use duplicate rows from a table except
I am using Oracle 10g Enterprise edition. A table in our Oracle database stores
I am using oracle database While inserting a row in a table, i need
We are using Oracle database. In our table timestamp is stored as seconds since
I have an Employees table. I am using Oracle database. Employees Table - Employee_id
I wish to create an external table in an Oracle database, retrieving its data
I am using Oracle Database and I am a bit confused about Drop and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.