How to do a bitwise operation on a specific column in the database timesten
Hello
I need to do a bitwise operation and (&) operation on a column of data (whose datatype is NUMBER).
If I do something like SELECT 1010 & COLUMN1 from TABLENAME;
It will give the error: 'type 'NUMBER' not valid for operator 'BITAND' operand in expr data '.
Anyboday can help me?
Thanks in advance
Concerning
Arnaud
NUMBER is floating point format. Bitwise operators apply only to INTEGER values. There are several ways to work around it...
1. If the column in the database only stores integral values and then change its definition to NUMBER (n) (choose n) properly.
2. change the select statement to SELECT 1010 & CAST (COLUMN1 AS TT_INTEGER) (or TT_BIGINT according to the maximum value if you tore in the column)
3. change the column to a native integer TimesTen type as TT_INTEGER, TT_BIGINT etc. It uses less space and more efficient.
The columns should * only * be defined as NUMBER (with no precision or scale) if they really need to have this flexibility. Always use an explicit precision (and which adapted as appropriate) because this saves memory and allows to avoid this kind of issue. Better yet, use whole native types TimesTen, wherever possible. They use less memory and provide superior performance to those of all variants of NUMBER.
Chris
Tags: Database
Similar Questions
-
How to install a second operating system on a partition on the same hard drive under xp?
Hello!.. How can I install a second operating system on a partition on the same hard drive under xp?... Thanks in advance!
With the elders the older operating systems, in this case 98, has prior installation.
Is that of Vista as soon as it does not matter what operating system is installed first to do a dual boot.
With Vista, you can then install XP as the second installed the operating system in a dual boot.
But this isn't like you do is 98 or XP...
See you soon.
-
How to compare one by an element of a column with the first column in the other table?
Hello
I have two files into a single file has only Id numbers and the second file has table with for example the column 4, and his first column identification number.
So I want to compare the first item in the User.ID file with the 1st column all the table file items in this column until it finds matches.
If compare match then LED will be IT other wise LED will be OFF.
Here as an attachment, I've attached the two file.
Please guide me how can I do the same thing.
Thank you much in advance.
-
How to find a table, using the name of the column in the database schema
Dear all,
Please help me on
using the name of the column, how to find a table name in the database schema.
Thanks in advanceHello
You can query the data dictionary views all_tab_columns and user_tab_columns.
For example, to find the tables in the scott schema have called deptno columns:SELECT table_name FROM all_tab_columns WHERE owner = 'SCOTT' AND column_name = 'DEPTNO';
Remember that anything inside quotes is case-sensitive.
The all_tab_columns view has one row for each column in each table (or view) that you have the privileges to use.
The user_tab_columns view is a subset of all_tab_columns, containing only your own tables (and views). -
How to display one value different, other than what is in the database in a field
I have a frame repeatating (corresponding to a single request).
There are 6 fields (columns) in th RF.
Now say in one column, database values are like 1,2,3,4 etc...
I want to show "ASSIGNED" is set to 1, INPROGRESS, corresponding to the value 2, etc...
Could you please tell me how can I do?
ConcerningHello
You can create a formula column in your query and try code below. The formula column must be char as a return data type
IF :column = 1 then return 'ASSIGNED'; ELSIF :column = 2 then return 'IN PROGRESS'; ELSIF :column = 3 then return 'VALUE3'; ELSIF :column = 4 then return 'VALUE4'; ELSE return 'VALUE5'; END IF;
Concerning
Maury
Edited by: ManojP on July 19, 2010 07:26
-
How can I find online a list of specific changes in the latest version of Firefox?
site design Web current mozilla eliminated (or hidden beyond my ability to find) information on what has changed in the last published Firefox. The only thing I can find on "what's new" is a video of bland, generic "Firefox 3.6 is wonderful."
== The last version (3.6.4?) first time
http://www.Mozilla-Europe.org/en/Firefox/3.6.6/releasenotes/
-
How to insert table 1 d elements in specific place in the 2D array
Hello
I have a 2D color boxes [10 x 10] table, and I would replace elements with the elements of the array 1 d [4 items] at the precise place.
When I try to use, subset table replace "I can only specify the INDEX ROW or COLUMN INDEX where to start to put new items. But I need to select the two column/row index.
Any ideas?
Hi kamill,.
When replacing a 1 d table in a table 2D LabVIEW can only replace line - or columnwise.
When you want to replace specific, but independent, elements that you must use an autoindexing FOR loop to iterate through items of your1D or the berries!
-
Flash AS3 Pro: How can I change a font for a specific column?
I would like to use a font for a specific column in a DataGrid.
Thank you
Yes, you can set individual policies for cells in a datagrid control. Look at this tutorial: text formatting changes to cells in the DataGrid control. This will give you the basic idea for the outer class, you need to write. In the example, you will see that there are three cells that have changed their color of the text. To change the font, you must first import the new font in your file library and set a name for Actionscript police liaison. Then, you add just a line to set the font for a single cell:
case "pending":
TF. Color = 0xFF0000;
TF.font = 'Times '.
for example.
-
How to create the default user interface is newly added to the columns in the table
I added the new columns to the database table existed who got the default values for the user interface to the columns existed.
How to create the default UI for the new columns.
I couldn't see the newly added columns change the default UI (object browser-> database-> default UI - Edit-> Table).
Using APEX 5.0.3
Can you please help.
Thank you.
Find the option "Synchronize with database" under tasks on the interface's default user - Edit
-
How to disable filtering on specific columns
Hey everybody,
In the virtual computer objects tab the filter box top right only supports columns Name and State. All the other columns are not available in the drop-down list of filter "Select columns" (see attachment)
How can I do this in my own personal opinion? I have some columns (i.e. in plugin.xml) that do not support filtering on. Thanks in advance
-MikeThe mechanism to remove the specific column from the drop-down list filter is not exposed in the SDK but filtering won't work in all cases for a column if you implement the corresponding method of processPropertyConstraint() for this property in your data adapter (see samples/chassis-app/chassisRackVSphere-services/src/main/java/com/vmware/samples/chassisRackVSphere/ChassisRackVSphereDataAdapter.java)
-
How can I import bookmarks Opera 25.0 in firefox?
I am moving 25.0 Opera for firefox, but can't move my favorites.
-It has no option in Opera to export bookmarks to HTML.
-In my Appdata folder the bokmarks are stored as Bookmarks.bak, and I don't know how to convert this file to HTML, so I can import it into firefox.
-If I choose "import bookmarks from other browsers' firefoxes bookmarks manager, I can choose between chrome and IE, but no Opera.
Noirboulon wrote:
The bookmarks are stored in Bookmarks.bak
This is a backup copy of your bookmarks bar. The original must be simply called bookmarks without file extension.
Apparently, you can place these files in your profile Chrome folder and export bookmarks in Chrome.
-
How can I access a journal or a report that lists the results of an operation of Disk Defragmenter?
Windows Defrag is supposed to run silently in the background.
Unlike XP, it does not offer a newspaper to the user, as far as I understand.If you schedule a defrag, you can let it run in the background and forget it.
Schedule defragmentationStart button > Search box, type Task Scheduler > pressenter > invite uac, click on continue or enter the admin password >
(click on the pointer before) to expand Task Scheduler Library >
expnad Microsoft >
Expand Windows >
Click on Defrag > the middle column, click scheduled d.... >
right column, click Properties > click triggers tab at the top > click on Edit > select / adjust how to defragment Appendix to be executed, select options >
at the bottom of the box, place a check on " enable " >
OK > OK yet > exit the Task Scheduler window. -
How can I move my operating system to a new disk?
Can you tell me how I can move my operating system and all the data to my new 1 TB of my little, 160 gig SATA drive SATA drive. Is it a question of copy / paste? I am running XP.
I know that I can do the clean install and change the boot etc drive, but this means that I have to reinstall all my drivers, network and all that jaz.
Just reading. Is there a XP system image backup center?
The new hard drive manufacturer normally provides software to do what you want to do cloning.
Ask them about it.
http://www.Acronis.com.au/homecomputing/products/TrueImage/
Or read the above info: 3rd group of programs.
XP forums:
http://social.answers.Microsoft.com/forums/en-us/category/WindowsXP
Link above is for XP Forums.
There is a list of the different Forums XP to the link above to help you.
You get the help you need there.
Here is the Vista Forums.
See you soon
Mick Murphy - Microsoft partner
-
I want to install my photoshop 5.0 but limited edition pc screens, I have to check if it is a 32-bit or 64-bit application. I changed my windows XP to win7 64-bit operating system (I think that's the problem) how to install and run my photoshop 5.0 the on this system?
It is no longer available via adobe and if buy you it to someone else, that you will probably have problems running. I think that it is compatible with win 98 but I don't know if it's available for you using compatibility mode.
-
Hi all
Could someone knows how to find the number of users connected to the database without connection with sql * more
y at - it a command to find?
example, we have 10 databases in a server, how to find the number of users connected to the special data base without connecting to database(v$session)?
the Oracle version:-10g, 11g
Operating system:-OEL4, OEL5, AIX, Solaris
any help will be appreciated.
Thanks in advance.
Thank you.
Kind regards
Rajesh.but you can say total number of connection with the above given the command? It would also be useful to know.
See you soon,.
LKM
Maybe you are looking for
-
Toshiba 42WL67Z - no picture via hdmi and vga
Hello After a power outage, my 42WL67Z (Regza LCD) no longer displays a picture via hdmi and vga. The computer receives a TV signal, it detects the screen when connected and offers the usual option (duplicate or prolong the display, screen resolution
-
How to get to the C: drive when Xp does not boot?
Hello After a few months of excellent performance of my laptop Satellite M40X I started having "blue screens of death" that eventually led to complite crash - all I get is a message (new on blue screen ;)) which):-------------------------------------
-
Table of current value (CVT) download newsletter
Hey guys,. I have problems using the VIPM (not able to connect to LV). I tried a lot of things to be able to reuse VIPM (it worked before, maybe some windows update has changed anything). NOTE: I don't use windows firewall! The other firewall was not
-
Original title: Running Win7 on Bootcamp. Error: The game could not create the Direct3d device. Please make sure your video drivers are installed properly. I try to play Psychonauts out of steam. I am currently running Windows 7 via Bootcamp on my Ma
-
When the computer restarts, I get the error cannot create shell notification icon please help
When I reboot count it I get error cannot create shell notification icon can any body help me Thank you