Select changing decimal separator type
I'm consulting a database which use comma "," as a decimal separator for numbers. I would like to make a select which takes those numbers using point "." as a decimal separator.
for example I have a value 1,34 in the database, I would the make a select which returns this value as 1.34
Or:
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1224836384599#tom38829286554804
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams129.htm#REFRN10126
http://www.oracle.com/pls/db102/search?remark=quick_search&word=nls_numeric_characters&tab_id=&format=ranked
Similar Messages
-
How change decimal separator from . to ,
Hi
I need change the decimal separator from . to ,
and apply ZZZ.ZZ9,99
thanksThere are a number of ways in which you can change these characters. They can be changed for all jobs by updating the jfmerge.ini, or for a single job by using command line options.
You can update the jfmerge.ini either in an editor, or by using Central Control.
In an editor you will update the entries for CurrencyComma (, by default) and CurrencyDot (. by default).
In Central Control go to the 'Configuration' menu item, then select 'Configure Central and Agents', then select 'Print Agent' and Edit. Then select the 'Currency' button. You can now modify any of the currency options.
On the command line you can enter -acucc=. for the thousand separator, and -acucd=, for the decimal separator.
For more info on these options see the -acu Option Arguments in the Print Agent documentation. -
ORA-00913: too many values - how to change decimal separator?
I want to use SQL Developer's database export and need advice how to tweak the decimal separator from , to . in the sql-inserts created.
Preferrably in SQL Developer, because this error can be easily happen and is hard to catch during import.+
See below how to reproduce this:
h3. 1.) ddl (ugly)
set SERVEROUTPUT on
CREATE TABLE AADECIMEXPORT
"DECIMALNUMBER" NUMBER
, "HUBBABUBBA" varchar2(20 byte)
CREATE TABLE succeeded.
h3. 2.) inserts by hand
insert into AADECIMEXPORT(DECIMALNUMBER,HUBBABUBBA) values(10,'smells integer');
insert into AADECIMEXPORT(DECIMALNUMBER,HUBBABUBBA) values(3.141592654,'smells rounded pi');
1 rows inserted
1 rows inserted
¨
h3. 3.) select * from AADECIMEXPORT
DECIMALNUMBER HUBBABUBBA
10 SMELLS INTEGER
3,141592654 smells rounded pi
h3. 4.) then use sqldevelopers Tools-"database export" to export this table
-- File created - tiistai-marraskuu-23-2010
-- DDL for Table AADECIMEXPORT
CREATE TABLE "AADECIMEXPORT"
( "DECIMALNUMBER" NUMBER,
"HUBBABUBBA" VARCHAR2(20)
-- DATA FOR TABLE AADECIMEXPORT
-- FILTER = none used
REM INSERTING into AADECIMEXPORT
Insert into AADECIMEXPORT (DECIMALNUMBER,HUBBABUBBA) values (10,'smells integer');
Insert into AADECIMEXPORT (DECIMALNUMBER,HUBBABUBBA) values (3,141592654,'smells rounded pi');
-- END DATA FOR TABLE AADECIMEXPORT
h3. 5.) Test the insert
Insert into AADECIMEXPORT (DECIMALNUMBER,HUBBABUBBA) values (3,141592654,'smells rounded pi');
Error starting at line 49 in command:
Insert into AADECIMEXPORT (DECIMALNUMBER,HUBBABUBBA) values (3,141592654,'smells rounded pi')
Error at Command Line:49 Column:12
Error report:
SQL Error: ORA-00913: too many values
00913. 00000 - "too many values"
*CAUSE:
*Action:About
Oracle SQL Developer 2.1.1.64
Version 2.1.1.64
Build MAIN-64.45
Copyright © 2005,2009 Oracle. All Rights Reserved.
IDE Version: 11.1.1.2.36.55.30
Product ID: oracle.sqldeveloper
Product Version: 11.1.1.64.45
Version
Component Version
========= =======
Java(TM) Platform 1.6.0_14
Oracle IDE 2.1.1.64.45
Versioning Support 2.1.1.64.45 -
BEx browser: change decimal separator
Hi
How can I change the decimal/thousand separator of BEx browser (show USD 1'000.00 instead of USD 1.000,00)?
According to another thread in SDN the decimal notation is supposed to depend on the user configuration in the backend (su01). But changes there do not affect the presentation in BEx browser.
I also tried to change the system (Windows) configuration of the portal server, without any effect.
Thanks for your help.
Kind regards
ChristophHi
Thanks for your response
I tried both - without any effect. I also tried all the options in rsa1 -> properties of the key figure.
Any other suggestions?
Kind regards
Christoph -
Page Snapshot on Mac using Shift+Command+4, can I change the file type?
Is there a way to have this feature save the screen shot as a .jpg or something other than .png?
Thanks for The help!Actually you can change the file type, using a defaults write command in Terminal. Whatever you select changes the file type for all screenshots until/unless you globally change it again. All OnyX does is run this command in the program's interface--if you don't know how to use Terminal you may prefer this. If you want to use Terminal, you would launch it, then copy this command:
defaults write com.apple.screencapture type jpg
Paste it into the Terminal window and then press the Return key. I believe you need to restart for the change to take effect.
Francine
Francine
Schwieder -
How can I change decimal separator in DIAdem reports to print it according to my regional settings?
Hi Juliano,
Depending where in REPORT the number comes up, you either enter in a format string of "d,ddd" or you use the str() function with the same format string.
It would help to know more about your report,
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
hi Gurus,
my question is i want to open pdf file in ecl viewer so that i can edit that file.
but when i am selecting change front end type, it is giving me error.
change front end type not possible if network is DEFAULT
is there any other way to open pdf file in ECL viewer for editing , makups etc etc
thanks
AmitAmit,
U need to enter EAIWeb.webviewer2D.1 %SAP-CONTROL%assign in Application (path and pragram) in define workstation application for data carrier pc in DC30 for PDF.
Please remove %auto% from path fielf for pc.
Plz revert back if u require further information
Pramod
Plz award pts if it solves ur query. -
Is it possible to change the decimal separator for importing data?
I have data with , as separator can I change the default Point to comma?
Thanks for your interest
Thomas Pfeiffer
Message Edited by Thomasrp on 02-16-2006 10:10 AM
Solved!
Go to Solution.I really don't understand your problem, because normally DIAdem can import both types of decimal separators... If you use the ASCII Import the important is that you use the proper configuration for your file type… and if this file uses the comma as a decimal separator, the delimiter character between data will not be a comma… DIAdem should import the data with no problem, but on DIAdem you will see always the "." (dot)
If your problem is that on the DIAdem View you want to see the "," comma you can do the following:
- Right mouse click, and select "Table Settings"
- Change the numeric format, for example "dd,ddd" then you will see only 3 decimal places and the decimal separator will be the comma.
Hope this helps you,
Marc. -
Decimal Separator in SELECT Clause
Hi
I have the following decimal format parameters:
SQL> select value
2 from v$nls_parameters
3 where parameter = 'NLS_NUMERIC_CHARACTERS';
VALUE
If I show a number with decimal I get a comma as the decimal separator
SQL> select 10/100 from dual;
10/100
,1
But if I use a decimal separator in the SELECT clause I get:
SQL> select 100 * 1,1 from dual;
100*1 1
100 1
It doesn't work. But using a period as the decimal separator works:
SQL> select 1.1 * 100 from dual;
1.1*100
110
Maybe this is something I've never had to deal with before but I thought that the numeric format applied to the sql results and also the numbers that you used in the sql clauses.
Regards,
Néstor BoscánHi,Néstor,
user594312 wrote:
... I thought that the numeric format applied to the sql results and also the numbers that you used in the sql clauses.No; it applies to results, and it can affect implicit conversions, but it doesn't apply to SQL code.
The period (or dot, '.') is always the decimal separator in numeric literals. There is no way to change that.
Think how confusing it would be if it did apply to SQL code! For example:
WHERE num_col IN (1,2)Are we comparing num_col to 1 value or 2 values? Whichever it is, what if we wanted to do the opposite?
If you really wanted to use comma as the decimal separator, you could have to use strings, not numbers, and that could be a lot less efficient.
For example:
SELECT 100 * TO_NUMBER ('1,1') -- This assumes your NLS settings are correct
FROM dual;Of course, efficiency won't be an issue when you're selecting 1 row from dual. -
Changing preferred font types for each language separately in Safari
Hi, I'm wondering in Safari->Preference->Appearance, you can change the default fonts for your main language, which is most likely English.
However, if I want to change font types for each specific language, e.g. Japanese or Traditional Chinese, how could I do that? I assume that if I change in the Appearance menu, it's global to all languages (e.g. English)?
Just to illustrate my question, in Firefox, I can go to Firefox->Preference->Content-> Fonts&Colors->Advanced, then I can change the font types for each language separately.
How do I do similar things in Safari in Leopard? Thanks.
Message was edited by: nmuns
Message was edited by: nmunsBut it seems very weird that for all the beautiful font types in Mac OS, the users are only stuck with the default font type only?
Perhaps, but it's just an example of how different browsers and apps offer different features. You should use the browser that works best for you. While FireFox may be good for that feature, it can't display some languages, like Hindi, correctly at all.
It is possible to change the font using a custom style sheet, which you can select via the advanced item in Safari preferences, but I don't think there is any way to do this on the basis of language.
What language are you specifically interested in changing the default font for? If you are getting the wrong kind of font for CJK (for example, seeing Japanese character types instead of the Chinese ones in Chinese text), this might be fixable by changing the language order in system prefs/international/languages. -
Text keeps disappearing when I select it to make type at all / make changes / edit. Type tool is not working. I am running CS6 on a Macbook Pro Retina (which I am hating!) 10.9.4 - wish I'd never upgraded.
Photoshop General DiscussionThe RAM needs specs as shown below.
Maximum Memory
16 GB (Actual) 8 GB (Apple)
Memory Slots
2 - 204-pin PC-10600 (1333 MHz) DDR3 SO-DIMM -
Change type field active mode while selecting Change number type
Dear All,
Our requirement is to get the list of Change type in the CC01 T-code when we click the change master. When we select ECR then we are getting the change list of change type. But, when we select the change master as type, then change type is coming as grey field. So we want the list of change type in change master
Please suggest
Regards
HonyalAny input ?????????
please
Regards
Honyal -
Change Field selection group for Movt type 701
Hi experts,
I want to change Field Selection group for movt type 701. Right now " Business Area " & " Cost Centre " fields are suppressed. I want to change it to required entry.
Please guide me over this
Regards,
Rajneesh Gulatithe note explaines it:
In Customizing an account assignment can be made for every inventory
adjustment account. To do this the inventory adjustment account must
first be defined as a cost element (Transaction KA01 / KA06):
Accounting -> Controlling -> Cost centers -> Master data -> Cost element
-> Create primary / secondary. Then an account assignment can be made
for the cost element (Transaction OKB9):
Tools -> Customizing -> Setup menu -> Accounting -> Controlling -> Cost
centers -> Actual postings -> Automatic account assignment.
If this account assignment is implemented every posting to the
particular inventory adjustment account will automatically receive the
appropriate account assignment. -
How to change the local decimal separator on windows xp OS ?
Hi all,
I would like to known how to change programmatically with LV8.5 the local decimal separator ? I want to force this parameter to the point separator, so to be sure that it's not the comma (if it's the comma when installing the executable, the ascii files are not read properly).
Thanks.
Wilfried.GerdW wrote:
Hi Wilfried,
you can use the format code "%.;" to get points as decimal separator in each string formatting function.
This is the important one. Put it at the beginning of every format specifier!
Some functions have a boolean control 'use local decimator' make sure this is 'F'
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
Trinidad-config.xml, number-grouping-separator and decimal-separator
Hi,
According to my application locale, numbers are formatted as 1.234,56
Now I want numbers to be formatted the US flavour: 1,234.56
Here is my trinidad-config.xml file contents:
<?xml version="1.0" encoding="windows-1252"?>
<trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
<skin-family>mySkin</skin-family>
<number-grouping-separator>,</number-grouping-separator>
<decimal-separator>.</decimal-separator>
</trinidad-config>
The file above is declared in the web.xml file (although I'm not pretty sure this is really necessary):
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/trinidad-config.xml</param-value>
</context-param>
And an example of a numerical input text:
<af:inputText value="#{row.bindings.Salary.inputValue}" label="#{bindings.EmployeesView3.hints.Salary.label}"
required="#{bindings.EmployeesView3.hints.Salary.mandatory}" columns="#{bindings.EmployeesView3.hints.Salary.displayWidth}"
maximumLength="#{bindings.EmployeesView3.hints.Salary.precision}" shortDesc="#{bindings.EmployeesView3.hints.Salary.tooltip}"
id="it5">
<f:validator binding="#{row.bindings.Salary.validator}"/>
<af:convertNumber pattern="#{bindings.EmployeesView3.hints.Salary.format}" />
</af:inputText>
Where the pattern is set at Entity Object level: Employees EO > Salary attribute > UI Hints > Format: #,##0.00
But it doesn't work. I don't know what I'm missing... Please, help!
JDev 11.1.1.3.0Hello. With my application locale, numbers are formatted as 1234,56
But i need 1 234.56 format.
To achieve this, I use trinidad-config.xml, that contains few options:
<?xml version="1.0" encoding="windows-1251"?>
<trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
<skin-family>mySkin</skin-family>
<number-grouping-separator> </number-grouping-separator>
<decimal-separator>.</decimal-separator>
</trinidad-config>
On my page i use af:outputText with af:convertNumber as shown below:
<af:outputText value="1234567,890" id="ot2">
<af:convertNumber currencySymbol="USD" minFractionDigits="2"
groupingUsed="true" type="currency"
maxFractionDigits="2"/>
</af:outputText>
Output: *1 234 567,89 USD*
Why decimal separator hasn't changed?
Byt the way. With convertNumber type "percent" output will be *1 234 567.89%*
Maybe you are looking for
-
7310 - Problem with CIFS and Roaming Profiles since upgrade to 2010.Q1.0.2
We have developed a strange problem with our environment which I'm pretty sure is down to the upgrade to 2010.Q1.0.2 from 2009.Q3.4.1 on our 7310 (all the previous 2009 releases had been fine) since nothing else has changed in our environment. I susp
-
ITunes 11: iPad 3 not syncing
I upgraded to iTunes 11 yesterday and now I can't get back my iPad 3 to sync. It is being recognized and shows up in iTunes, but when I click the "Sync" button, it starts syncing, backs up okay but also quits in the middle of "Determining which Apps
-
To get the warning messages raised in determination
Hi Expert, I am validaing the Root node using determination(on modify) and raising warning messages , and these warning messages needs to caprured onclicking save button. when clicking save button twice the warning messages goes off and displays "Sav
-
How can I show my mail count that I have saved in my folder when entering my mail box?
I want to display my overall mail count when I open my mail. Even when I saved them.
-
How can i reduce color predominance/dominance?
Hi is there a way to reduce or remove color (or a range of color) predominance/dominance? i did a search for a video on youtube , and i didn't find it i tried with the eyedropper to select a color , solid color ,blend exclusion but nothing thanks che