Method to get the mod (in PL/SQL)
There are 2 methods to get the mod (in PL/SQL)
Start
-Method1
DBMS_Output.put_line (mod (17.6));
-Method2
DBMS_Output.put_line(17 Mod 6);
end;
/
My question is the method that is best
I think that Method2 is undocumented documented of PL/SQL.
Therefore, we should use Method1.
Hello
I see no benefit to the use of "17 MOD 6.
It is certainly preferable to use documented techniques. 2 ways seem to be just as effective. Neither is inherently lighter, simpler to code or easier to maintain than the other. In SQL, you have no choice: only "MOD (17: 6)" work in SQL. I suggest to use it in PL/SQL, too.
Tags: Database
Similar Questions
-
With the help of LW/CVI 2010 SP1.
Is there a method to get the version of the RTE running? I used GetCVIVersion() to return the version of LabWindows/CVI run-time libraries, but which does not offer a clue as to the engine used.
Anyone else need it?
GetCVIVersion and GetCVIVersionYear return the version information of the RTE (cvirte.dll) you call - it's WFP which RUNS within your application. Basically, the version information are incorporated into the implementation of the DLL TEN of these functions and when calling these functions, they return the embedded information. You do NOT get the version of the installed TEN.
-
can I get the full text of sql from aud$ data table
Hi gems... good afternoon...
We try to understand the name of the tables and actions associated with their subject (select, insert, update, delete) what we will do with our application.
So I enabled the audit parameter audit_trail = db, extended. After that I can get the records required of the dba_audit_trail_view by the following query:
I'm satisfactory output by that. But the problem is that some of the requests in hibernation is too large (maybe 10000 characters... "I'm not sure), these queries do not come completely. This is why I don't get some important information such as the WHERE the FROM clause condition, etc.select d.entryid, d.timestamp, d.obj_name, d.action_name, d.sql_text from dba_audit_trail d where d.username='TEST_SCHEMA' and d.obj_name not like '%$%' and d.obj_name not in ('_CURRENT_EDITION_OBJ','ALL_OBJECTS','_ACTUAL_EDITION_OBJ','ALL_SYNONYMS','_ALL_SYNONYMS_TREE', '_ALL_SYNONYMS_FOR_AUTH_OBJECTS','_ALL_SYNONYMS_FOR_SYNONYMS','ALL_SYNONYMS','DBA_SYNONYMS','PLSQLDEV_AUTHORIZATION', 'USER_OBJECTS','_ALL_SYNONYMS_FOR_AUTH_OBJECTS','DUAL','_BASE_USER','ALL_TAB_COLUMNS','ALL_COL_COMMENTS','ALL_TAB_COLS', 'NLS_DATABASE_PARAMETERS','ALL_SOURCE','ALL_ERRORS') order by d.timestamp desc;
There is no sql_id column in the table of $ aud.
Is it possible to get the full text of sql... Please help...for this view sql_text column is different... try column sql_text a60000 and answer format which is the result
-
Substitution method to get the name of the working table
Hello
Is there an alternative method to get the name of created by LKM in IKM working table?
I see getFrom() used in some IKM.This is because you use brackts in the value of the parameter UD3... it didn't.
On the position, simply use the command: (for example)
<%=odiRef.getColList("", "[POS] ", "", "UD3")%>
works?
Cezar Santos
http://odiexperts.com -
Method to get the accuracy of the GPS in meters
Hi experts,
What is a good want to can provide the code to get the accuracy of the current GPS of the device, in meters.
Help, please.
Best regards,
Year s
There are two methods named getHorizontalAccuracy() and getVerticalAccuracy() in the QualifiedCoordinates class. Who will return meters in the representation of float... Hope this will help you...
Thank you
-
How to get the mode keys in Potrait of BB 9530 Simulator
Hello
Please tell me how we can get all the keys in the event of BB 9530 Simulator potrait mode. I use the keyChar function to get the Keyboard Keys.When I try Simulator I get only first character printed on the key on the keyboard. For example if QW printed on the key on the keyboard I am only able to do Q.
Hello
To get both the character press a single button, you need to implement your own logic to exploit it is to say you need to keep track of the frequency to which the user has press a particular button, if it is continuously pressing a particular key must move this key.
You can use keyRepeat() etc functions to achieve this.
Please let me know if it helped you or not.
-
Hi experts,
Can you kindly mention the method by which I can get the BB device ID using J2ME.
net.rim.device.api.system.DeviceInfo
DeviceInfo.getDeviceId();
-
How to get the full DDL using SQL developer
Hi all
I need get the full DDL a table with the details of the index partitions, synonyms, comments (if any) and give information if given any role, use SQL developer. We can achieve the same thing using shortcut F4 on name of the table into a frog, then selecting tab DDL. Is it possible to get the same in SQL Developer also?
Also how I see existing procedures using SQL developer? A toad, we were able to achieve using the schema browser.
Hi all
I reached by - right click on connection - diagram open... and any browser will even...
-
How to get the connection ID in SQL?
Hello
How to get login Id in sql?
such as "select * from table1 where userlogined =: {$$loginid}"?
Best regards
Jason GaoIf you want to get the user name for the user, you can use the variable: xdo_user_name.
Select: xdo_user_name of the doubleAlso check this out to learn how to use it to filter the data for a specific user:
http://blogs.Oracle.com/XmlPublisher/2007/04/10/Thank you!
-
Satellite L40-17 t - how to get the mode full screen of low resolution?
Nice day!
What should I do to get a resolution 800 x 600 mode full screen for Satellite L40-17 t?
You must remove the graphics driver and should only use a common Microsoft Windows driver that supports only the resolution 600 x 800 and 768 x 1024.
But I really don't understand why you want to use 600 x 800? Is the resolution 768 x 1024 high?
-
How to get the pages Web JSP SQL queries in oracle R12
Hi all 2
Does he know that SQL getting executed queries from Web JSP pages in oracle R12.
Kind regards
LavenuThere should be a link on bottom of 'about this Page', click on and objects of view all the components business/reference
Lists the view objects that are used on the page... Select these links & will show the SQL query
Thank you -
Satellite A300-215 - cannot get the mode full screen
Hi people!
Yesterday bought a beautiful 215 Satellite A300 - Intel Core 2 Duo / P8700 / 2.53 Ghz / 15. 4 WXGA / * Radeon HD 3650 * / 400GO
"Works like a Ferrari, but has a problem of querky get a full screen whenever I try to play any media, for example watching footy, movies, the screen will just go *" FULL SCREEN "*: (: (, tried my best change the display resolutions in the control panel in all possible ways, but can't it upwards with a full screen full.))"Downloaded yet another driver nvidia video driver that corresponds with the books of Toshiba, but it does not work. The current driver I have to view it of ATI Mobility Radeon 3650, also of no assistance?
When I try to set the resolution fpr the wmp player or player spvod to fit the entire screen, the page turns just huge, unmanageable, it's fine with laptop functions, no problem. at all, but not possible to take advantage of any media-magnified.
Strongly, I'd appreciate it if someone could help me please solve this, thanks in advance! Soon :)
Hi Amor,
> Downloaded yet another driver nvidia video driver
Are you kidding me? : D
Why you are downloading a nVidia display driver if you have a Radeon HD 3650 graphics card?
I put t understand thisAnyway, you have full screen in Windows, or this only happens if you play any media?
In addition, it would be interesting to know if you have installed XP yourself or was it is preinstalled on your laptop? You should test it with OS preinstalled Toshiba, maybe that s a software problem.
Also make sure that this latest version of the BIOS is installed and verify in the display settings, the image format Options. It must be set to full screen.
-
Get the positive values of sql
I have the balance column and I need to choose only positive of the sql query values.
Balance
200
-20
-220
100
EXPECTED
Balance
200
100Like this??
SELECT SUM (balance) FROM (SELECT total (KEY, program) balance FROM your_table WHERE total (KEY, program) > 0)
-
How to get the best CPU consuming sql oracle 10g
I see the top sql by running the report from ASHES. but there is too much information. is there a way I can just view TOP SQL section and filter the other parts? This way I can use it in a shell script and loops through the database.
or are there that a query can do the work of ASHES?
Thank you.
KarlHave you run tkprof on the trace file to consolidate the results?
HTH - Mark D Powell.
-
Method of getting the 2 values simultaneously using communications series RS232C
Hello
I'm new on OR / LAB Windows CVI. What I have to do just that:
Only I have to read 2 values simultaneously in 2 different digital Panel using the RS232C serial communications, which are connected with sensors and after each equal time interval I read this (assume that I pressed start button and data comes in digital Panel then I'll press the button stop and note the values and then press the Start button and next value will come on signs).
Can you please suggest me the steps in this process.
ANY HELP WILL BE APPRECIATED
Thank you
Maybe you are looking for
-
I want to merge an old account to a new account
Hello I had iTunes for a long time, if long indeed that the e-mail address linked to my old account hosting servers declined. I want to know if it is possible, and if a member of the staff of Apple would be able to help me to merge my old account alb
-
Disable the iCloud sync iBooks books and PDF option
I activated the iBooks to iCloud download so it would sync my books and PDF documents. Now, I can't find a way to turn it off!
-
I called a line of technical support that was supposed to be for prolbems Avast free antivirus software. The tech support person, located in India with a company called Bamgar, has convinced me to give remote access to my computer. Currently, she pro
-
Manipulation of the file in Lightroom CC
I place my photo raw files in a folder and then import them into LR CC to be edited. In the past, when I exported my photos published in jpg format, the folder has had many times the raw photo and a jpg of the same photo. Lately, after that I exporte
-
SRM and the recovery of the VM
HelloIs it possible for a recovery of the VM to SRM without disrupting other virtual machines in the Group of Protection?Method of planned: change the stimulus plan and select do not put on for the other virtual machines in the Group (or put the othe