What is the integer equivalent of the t - sql in oracle?

I heard that oracle is not an ' Integer ' for table structures.

He took all my fields of integer type and makes them Number (10.0).

When my program runs, it compares the result in full and fails... If I look at the value it says "1 d" which I assume means 1 decimal Typedonnees.
I need to return an integer data type. I need to change the Number (10,0) number (10) or something else?

number (10,0) is an integer type. How do you compare numbers? I suspect a problem of conversion of customer.

Moreover, this forum is specifically for the SQL Developer tool. You can get more answers in the forum 'SQL and PL/SQL '.

Tags: Database

Similar Questions

  • What is the problem with my Oracle reports parameter?

    Hello

    We use a PL SQL package that allows the user to select the report you want Oracle and associated parameters.   While the control is passed to Oracle 11 g reports.

    The requirement of one of the reports is to enable more detailed codes be selected by the user and then shown.  The detailed code is an alphanumeric field that can hold between 4 and 6 characters.

    If my data model looks like this

    SELECT student_id

        FROM my_view

       WHERE detail_code IN :p_detail_code;

    and the parameter that I'm passing to Oracle reports looks like this (when I view the source HTML code)

    & p_detail_code =('1001','1002')

    so no record is selected.

    However, if my data model looks like this, I get the records you want:

    SELECT student_id

      FROM my_view

    WHERE detail_code IN ('1001', '1002');

    We have Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production.

    Please tell me what is the problem with my setting.  Thanks a lot for your help.

    This isn't how you can use in. See this example on how to solve it with the digital settings. If your setting is a character, you need to change this.

    In fact, when you simply enter 1,2,3 as an input parameter, you actually create this query:

    Select *.

    from my_table

    where num_column in ("1,2,3")

    Use rather a lexical parameter:

    Select *.

    from my_table

    & p_where

    In the parameter after relaxation shape, build the lexical like this:

    :p_where := 'where num_column in ('||:p_param||')';
    
  • What is the use_sigio parameter in oracle 11g R2

    Hi all

    Can someone let me know what is the use_sigio setting and how it will effect of database and operating system.

    Thank you

    A quick search on Google you would have found the answer: Ixora answers - e/s asynchronous and parallel query inter-node on AIX

  • What are the pl/sql w.r.t. unix commands

    How unix commands will help in pl/sql.
    What are the commands, why UNIX is preferable to the windows environment.



    Cheers...

    Combo says:
    How unix commands will help in pl/sql.
    What are the commands, why UNIX is preferable to the windows environment.

    UNIX is not used in PL/SQL. PL/SQL is a language in its own right, and Unix is the operating system with Oracle.

    Oracle will run on Windows and Unix environments (as well as some other * nix versions specific for example linux etc.).  UNIX is often preferred by people for a server environment, as he has a history of being a more stable operating system, but there are many who use Windows as a server environment too (we have we all both windows and unix servers).

    There are advantages and disadvantages to both. for example, it is easier to treat an MS Excel spreadsheet as an external database by using an ODBC Excel driver and services Oracle heterogeneous if you use a windows server, while UNIX, you generally with the purchase of a specific to ODBC driver with Excel, but the same Unix files has some advantages over windows except the reliability factor.

  • What is the patch appropriate for Oracle 11 GR 1 material to Oracle 11.1.0.7 Solaris

    What is the difference between the following types of patches for Solaris 10.0.9 64bits? to be 11.1.0.7 on Solaris OS version 10/9 64-bit?

    * Server RDBMS
    * Oracle database family

    Can't make you it easy, because then you must forget that easily.

    Start with, you can try to understand the difference between

    (1) a patch and a group of patches.
    (2) different flavors of patch - one-offs, CPU, power supply

    then the answer to your question should be as clear as the water (not the sands of decanting :))

    Good luck.

    See you soon.

  • What are the best support for Oracle build tools?

    Hello
    I tried hammerora the other day and I was wondering what another generation of load (stable) there are tools for Oracle?

    I would like to generate different types of load to the database for test and demonstration purposes.

    What tools do you use / know?
    Thank you!

    BR,
    PASI

    At the Conference the user Oracle the other day, Doug Burns Group (which featured the 10 g / 11 g Conference Performance Analysis) recommended "SwingBench" generator to load. Check out www.dominicgiles.com

    Published by: user11980272 on December 3, 2009 08:11

  • What is the official reporting tool Oracle JDeveloper ADF applications.

    Hi all
    I'm on the migration of Oracle Forms and Oracle JDeveloper ADF reports.
    I have read several books on JDeveloper and ADF and I take. Now what I will use to create reports; tool Oracle to create reports, that is tightly integrated with JDveloper and ADF comparable to the relationship between Oracle Forms and Oracle reports.
    I will be grateful for your response.
    Best regards,
    Denis Ojok

    There is no tool tightly coupled with jdev. Tool of oracles of choice would be BI Publisher (I guess). However, you can use the reports jasper or any other tool to report as well.

    Timo

  • What are the system variables in oracle

    Hai All

    In oracle, what is called the system variable and the types of system variables

    Good answer hepls me


    Thanks and greetings

    Srikkanth.M

    System of SETTING Variable summary
    Source: http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12040.htm

    Oracle environment variables
    The following environment variables are valid for Oracle:
    ORACLE_HOME
    ORACLE_BASE (optional)
    ORA_NLS (optional)
    NLS_LANG (optional)
    TNS_ADMIN (optional)
    Source: http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.websphere.ii.foundation.conn.fw.orc.doc/configuring/iiylsorcenvvars.html

    ORACLE_SID is the name of the database instance that you are using.

    T2KDEV is set to the type of terminal you are using. If you are using openwindows; Xsun if you use X windows.

    Is defined on the type of terminal you are using. Note: If you are using openwindows, you may need to redefine the variable TERM to the Sun (instead of cmd-Sun) and you must run a shelltool ORACLE.

    TWO_TASK is located where the ORACLE Server can be found, and will normally be the name of the database instance. This variable allows to simplify the command line to start the ORACLE tools.
    Source: http://ugweb.cs.ualberta.ca/~c391/manual/chapt3.html

    HTH
    Girish Sharma

    Published by: Girish Sharma on March 3, 2010 09:16
    Link and text added.

  • Retrieve the backend SQL to Oracle Financials report

    Hello

    There is an updated report in place in Oracle Financials (Portal). It works via a concurrent program, how do I view the SQL backend behind the report

    Can anyone help?

    p.s. I use version 12

    Thank you

    Hello.
    The responsibility of the system administrator, query the report in the definitions of concurrent programs and check the enable Trace. Run the program. A trace file will be put on your $ORACLE_HOME/admin/udump directory. TKProf this trace file and open the generated output.

    I hope this helps.
    Octavio

  • whisch are OK for undo_retention and what is the difference

    Hi all

    whisch are OK for undo_retention and what is the difference


    SQL > select max (maxquerylen) of v$ undostat;

    MAX (MAXQUERYLEN)
    ----------------
    6060

    SQL > select max (maxquerylen) in the dba_hist_undostat;

    MAX (MAXQUERYLEN)
    ----------------
    17221

    Hi amal.

    You can use begin_time & end_time v$ undostat-> to specify the time interval that you want.

    A brief note, of what you discussed here:

    maxquerylen

    Identifies the length of the longest request (in seconds) in the Forum during the period. You can use this statistic to estimate the right setting of UNDO_RETENTION initialization parameter. The length of a query is measured between the open time of cursor for the last time to fetch/execution of the cursor. As the length of these cursors that have been read/performed during the period are reflected in the view.

    V$ UNDOSTAT is dynamic, display of the current statistics.

    DBA_HIST_UNDOSTAT displays the history of the histograms of statistical data to show how the system works. Available statistics include undo space consumption, simultaneity of the transaction and the length of queries in the instance. This view contains snapshots of V$ UNDOSTAT

    hope that helps.

    Kind regards
    X

  • Question to load the XML file into Oracle via ODI: LKM and IKM adjustment

    Hi all

    I am currently building an ODI interface to upload my file system XML local in a 10 g to Oracle database.

    I received the error message shown in the screenshot below:

    ! http://img529.imageshack.us/img529/3491/odiscr175.jpg!

    The main problem I have is, I don't know all what LKM or IKM assign.

    Can someone offer any assistance/advice?

    Thanks in advance.

    James

    James
    You must select the LKM SQL for Oracle (or LKM SQL for SQL) and then within Oracle to integrate Oracle the IKM incremental update or append IKM SQL command.
    Reading XML, you can just use the standard SQL KMs. (when writing, there's a little more necessary artifice, and this can be done by using specific IKMs)
    Hope this helps

  • What is the equivalent of eth0 in Linux MS Windows?

    On Linux, we have eth0.

    What is the equivalent on Microsoft Windows OS platform?

    In a type of command window in ipconfig/all to display all of the current settings of the network. This will produce a number of entries. For a wired connection, the Ethernet connection to the Local network card will be the equivalent of eth0

  • I want to create images as Holger Lipman. What program and how I would do this. I learned to look at Processing.js and OpenProcessing. What is the equivalent to Adobe.

    I want to create images as Holger Lipman. What program and how I would do this. I learned to look at Processing.js and OpenProcessing. What is the equivalent to Adobe.

    [Duplicate message deleted... post the same question more than once is confusing... MOD]

    [This is an open forum, not a direct line to Adobe support... you have to wait a response]

    Hello

    Not really sure, please try to post the request in the community specific https://forums.adobe.com/welcome

    Kind regards

    Sheena

  • In Gimp, there is a command called "alpha to selection". Who selects the alpha channel only. What is the equivalent command in Photoshop?

    Untitled.jpeg In Gimp, there is a command called "alpha to selection" which automatically selects the alpha channel of the image or layer. What is the equivalent command that in Photoshop? I tried Googling it but everything that comes is tutorials on masks. I just want to know what to select the alpha automatically without using a 'magic wand' to select one by one.

    CMD (mac) or Ctrl (pc), click on everything that has transparency and that load a selection. This includes layers with transparency, masks layers, channels and paths. Also, there is a selection at the bottom of the layers, paths and channels Panel icon that looks like a dotted circle.

  • What is the equivalent of | operator using the Q-quote mechanism?

    Version: 11.2.0.3

    I started a thread on similar requirement last week. I didn't want to resurrect. So, I start a new thread.

    We have a stored procedure called generate_table_stats that meet the stats for tables with a few additional options.

    Usually, this procedure is performed as below

    generate_table_stats exec ('EMP_DTL', 'BASIC');

    We want to generate the exec above instructions dynamically for all tables.

    In the traditional method of quotations, we use the concatenation (|) operator to separate the column names whose values are retrieved dynamically from the table queried.

    Similarly, how can I get a column of values printed when you use the Q-quote mechanism?

    In my column in table_name attempt below must be retrieved from user_tables. But table_name and pipes that are treated as literal string (which is not surprising).

    What is the equivalent of | (concatenation operator) when you use the Q-quote mechanism?

    -Expected results

    generate_table_stats exec ('EMP_DTL', 'BASIC');

    generate_table_stats exec ('CUSTOMER_DTL', 'BASIC');

    .

    .

    .

    -My attempt using Q-quote

    -Using # as the quote delimiter

    SQL > select q'#exec generate_table_stats ('| table_name |', 'BASE'); #' From user_tables;

    Q' #EXECGENERATE_TABLE_STATS('||) TABLE_NAME |', 'BASE')

    -----------------------------------------------------

    generate_table_stats exec ('| table_name |', 'BASE');

    generate_table_stats exec ('| table_name |', 'BASE');

    generate_table_stats exec ('| table_name |', 'BASE');

    generate_table_stats exec ('| table_name |', 'BASE');

    .

    .

    .

    .

    Hello

    The concatenation operator. works the same with any string expression.

    x | There

    Returns a string that is the same as sting followed immediately the string x y, x is

    • a literal string with Q before the first single quote
    • a literal string without Q
    • a VARCHAR2 column
    • a function that returns a string, or
    • any string expression.

    The string can be everything above, too.

    If you concatenate strings of 3 or more, like this

    str1. str2. ... || Suro

    then each of the STRS can be any kind of expression, independent of others.

    If you want to concatenate strings of 3, the 1st and the 3rd being Q-literals and the 2nd being a column, you can do it like this:

    Select q' generate_table_stats #exec (#' | table_name)

    || q ' #, ' BASIC'); #'

    From user_tables;

    Each of literals has its own Q and her own pair of start and end markers (all the ' # s in the example above).

    Since the first string literal has no any single-quotation marks incorporated, it is unnecessary to use Q-rating, and it could be misleading; a person who bed the code might think the actaully string contains ' #'s.  I prefer wriite the query in the form

    Select ' generate_table_stats exec (' | table_name)

    || q ' #, ' BASIC'); #'

    From user_tables;

Maybe you are looking for

  • design of the iMac for FCE 4

    I run 4 CTF on El Capitan 10.11.5 - at this very moment on an iMac mid 2011, 12 GB, and a physical hard disk. Now, I think of investing in a new iMac and want to ask sizing parameters: (1) memory: I think 32 GB will improve performance, compared to 1

  • Adding multiple Airport Express to a router/network Apple no?

    Hi all You are looking for assistance. Until yesterday, I had an Internet ADSL connection and home network WiFi connection that consisted of a base no routing modem, connected to a time Capsule. The extended wireless network had 3 Airport Express con

  • 17 - k250CA: HP won't turn on, tried the Hard Reset still nothing system is 9 months old

    Afternoon in the hope of getting assistance, I tried to call tech support 4 times they keep telling me they ship me a box to send them back up after fustrating many hours and days away I decided to reach out to see if there is something, someone can

  • HAB check failed for start / could not validate the boot image

    Hello I have neglected my E bike for a few weeks and when I loaded and it fed today, it shows a menu and: HAB check failed to start could not validate the boot image Tried all the menu items and none of them worked. For me, it's very odd behavior, be

  • Whay are ALWAYS created icons?

    When I create a new file and save it - a new desktop icon is ALWAYS created.  How can I set desktop to create icons by choice and not automatically?