How to make allow null for a column in all table.
Hi,
I have a column "col1" in all tables (user made table) , i want to make it allow null
please tel me how can it be done using single script.
i mean in short way.
yours sincerely.
yes. absolutely you can.
Look, what i got -
Ranit>> select 'alter table ' || table_name || ' modify("TIMESTAMP" null) ; ' from user_tab_columns where column_name='TIMESTAMP' and nullable ='N';
'ALTERTABLE'||TABLE_NAME||'MODIFY("TIMESTAMP"NULL);'
alter table FIXED_OBJ$ modify("TIMESTAMP" null) ;
alter table SUMPARTLOG$ modify("TIMESTAMP" null) ;
alter table SUMDELTA$ modify("TIMESTAMP" null) ;
alter table ALL_SUMDELTA modify("TIMESTAMP" null) ;
alter table DBA_EXP_FILES modify("TIMESTAMP" null) ;
alter table WRI$_DBU_CPU_USAGE modify("TIMESTAMP" null) ;
alter table DBA_CPU_USAGE_STATISTICS modify("TIMESTAMP" null) ;
7 rows selected.But, it is not over.
Either - You have to do an 'EXECUTE IMMEDIATE' over these 'alter' scripts.
OR - Take these scripts, put it into a <script_name>.sql file and then execute this file.
Hope you understand.
Edited by: ranit B on Dec 22, 2012 3:17 PM
-- code added
Similar Messages
-
How to make a script for expand column width
Hi experts,
Is that possible to make a script for expand the column width aim to let the columns show up all the overset text?
Regard
JohnHi John,
As Uwe advised it would be wise to put a stop on any while loop in case the condition is never fulfilled which would mean the script will break.
Without knowing what specifically you are working on you could make the below amendments to do this.
myTables = app.documents[0].stories.everyItem().tables.everyItem().getElements();
for (var t = 0; t < myTables.length; t++) {
BE_resizeColumnsToFitContents(myTables[t], 200);
function BE_resizeColumnsToFitContents(tableToEdit, tableMaxWidth) {
for (var i = 0; i < tableToEdit.columns.length; i++) {
while (tableToEdit.columns[i].overflows === true) {
if (tableToEdit.width < tableMaxWidth) {
tableToEdit.columns[i].width += 1;
tableToEdit.columns[i].recompose();
else {
alert("Column " + i + " contents too large for column.");
break;
I won't put any extra functions in this because it might not be what you're after. To use this you just define the table width as a second argument to the function (but you could change this parameter to something else, like page, column or cell width). And, if you want to have a fail action you just put it in the 'else' part.
Brett -
Hello,
Please let me know how to achieve the below requirement
I have to display the report with time , section, total students, passed ,failed and display column which as to be a red and green notation..Is it possible to build a report as below?
Time
section
Total students
Passed
Failed
Display column
2009
SA_A
100
90
10
Thanks for the Help!! Highly Appreciated!!
Thanks
SRHi Sr,
There is Trails view in Result . which is newly introduced by Oracle.
With the help of this you can achive this solution.
Thanks & Regards
Rahul -
How to set default values for boolean columns
I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
I've tried to set default value at column level:
<Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
<Default>TRUE</Default>
</Field>
and at content type level:
<FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
But in any case, when i create a new item with this content type, default value is applied.
Can anyone tell how to set default values for boolean columns?
Thanks in advance,
Regards,
SergioIn the field definition you can set
<Default>1</Default>
or
<Default>0</Default>
How to set the default value Null? -
How to make a form for input in web interface builder
Hi expert:
How to make a form for input in web interface builder?I have already used it to do PS planning, but I don't know how to draw lines and checkboxes . Thanks in advance.
AllenWAD:
Open the WAD and create a new template. On the left hand navigation you will have several Web Items available. Under 'Standard' you have 'Analysis' item. Pull that into your template to the right. Under the Properties tab you need to pick the query [form/layout] that you have built in Query Designer.
You will also find other items such as Button group, Checkbox, drop down, list box etc available. Pick and drag into the template whatever it is you require. Lets say you want a button. Under the Properties tab select the 'Command' that you require. You could use standard commands that are available there. You could also define functions and commands that you require.
Query Designer:
Open the QD and drag the characteristics and key figures that you require into the rows and columns of the QD. You would need to specify restrictions under the Filter tab of the QD based on the granularity of data that you require. You would need to remember that the key figures need to be made Input Ready [do this by clicking on KF and on the planning tab select "change by user and planning functions"].
This shouldgive you a start. After you've explored it yourself a bit we can discuss further and I can certainly provide you additional details/material on these areas.
Srikant -
i created one table rk with 8 columns and that i designed in forms.
but i have another table grk with 4 columns.
this grk contains data.
this grk 4 columns data i have to retrive in rk table in froms by multiple records.
the both column names are same in the both tables.
because by seeing this 4 columns data i will insert remaining 4 column by entering in rk table in form.
i known that i have to write cursor to retrive the 4 columns data for multiple record from grk table and in trigger i have to produce to rk table.
i have worked but it is not working.
can any body help me out how to write a cursor for 4 column to retrive multple records in formHi,
Try,
DECLARE
CURSOR Cur_Test IS SELECT <field_1>, <field_2>, <field_3>, ... <field_n> FROM <table_name> WHERE <condition>;
BEGIN
OPEN Cur_Test;
LOOP
FETCH Cur_Test INTO <items_or_variables>;
EXIT WHEN Cur_Test%NOTFOUND;
END LOOP;
CLOSE Cur_Test;
END;Regards,
Manu. -
How to make a group for selectd Object javascript
How to make a group for selectd Object javascript
There is currently no native way to email groups from iPad.
The only way to do this is if your recipients are already members a a distribution group controlled elsewhere such as a Google Group or an Exchange Organisation, then you can email the distribution group address which will then in turn forward to the individual email address of the members.
Does it have to be email as currently you would have to add each recipient to the email manually.
iOS to my knowledge doesn't support contact groups in context other than organisation. -
How to boldface the header for ONE column
hi,
I want to know how to boldface the header for ONE column. The following will boldface the header for all the columns in the table
table.getTableHeader().setFont(new java.awt.Font("Dialog", 1, 12));
Thanks.
Jrabijtable.getColumnModel().getColumn( indexOfBoldColumn ).setHeaderRenderer( TableCellRenderer aRenderer )
-
How to make S-Curve for Primavear P6 by using BI publisher?
Hi,
Anyone knows how to make S-Curve for Primavear P6 by using BI publisher? I can display colunm such as planned unit, but not cumulative value. So I can't plot S-curve.
Thanks
Wang Xin
Edited by: 957906 on 09-Sep-2012 03:26The problem with the datagridview is that it can only show one table.
For more tables 3th party datagrid's are better.
Although you can start with using the old datagrid. Despite what is written on MSDN is it a complete different control then the datagridview. You can add in to your toolbox by right clicking on it and then add it.
The datasource of a DataGrid can be a complete dataset which is showed with all its relations.
Success
Cor -
How to make a CheckBox for a report parameter?
Hi,
How to make a CheckBox for a report parameter?
thanxdesign ur parameters forms using forms and call ur report form there
-
How to make a installer for iphone application
hi, dear all, I have made a iphone application by XCode , it can running perfect on emulator . I want it can be install on real device , how to do it ? how to make a installer for my iphone application ?
thanks to your response .If you go to the iPhone DEV area on Apple.com you can get a installer app once you are a developer. This installer will let you use apps for your own use. This installer app also supports up to X amount of phones you can install the application on. I thought it was set at 100 but could be now up to 500.
-
hello developers
I’m sharing a long time to find out how to make a wall for my game but now where is it.
Can someone help me?
its a wall for an iphone/ipod game.
It must be a wall that a sprite will stop walking it’s not a killer object but a stop object.
oh and are there differants in programing in ipad/iphone?
Thanks for help
Grtz JimmyI don't know what's you point on the wall and the player but you should do something as that:
-(IBAction)goLeft
if (player.x > wall.xo && player.x < wall.xI)
// you are in the wall go right
if(player.y > wall.yo && player.y < wall.yI)
// you are in the wall go right
player.x ++;
else ; // you are up or down of wall
-(IBAction)goRight
if (player.x > wall.xo && player.x < wall.xI)
if(player.y > wall.yo && player.y < wall.yI)
// you are in the wall go left
player.x --;
else ; // you are up or down of wall -
How to make a program for backgroung processing used servlet
how to make a program for backgroung processing used servlet
well i need the coding part written in servlet ,in which servlet is always ready for accepting a client request.
-
How to make exception rules for Stylish rules which change fonts?
How to make exception rules for Stylish rules which change fonts?
I use [https://addons.mozilla.org/en-US/firefox/addon/stylish/ Stylish add-on] to change specific fonts to other fonts of my choice, but I have a problem. I want to change the font Arial to Tahoma in almost all pages I visit, but with the exception of websites as wikipedia.org. Because of this, I find myself having a very long list of domains to change Arial to Tahoma, only because I don't want that rule to apply to wikipedia.org and additional one or two other websites.
The current rule I'm using is, (my actual list is a lot longer, but this is just an example):<br/>
'''''@-moz-document domain("mozilla.org"), domain("thefreelibrary.com"), domain("sil.org"), domain("ethnologue.com") {'''''<br/>
'''''@font-face { font-family: 'Arial'; src: local('Tahoma'); }'''''<br/>
I can't use the following rule because I don't want it to apply to wikipedia.org:<br/>
'''''@font-face { font-family: 'Arial'; src: local('Tahoma'); }'''''Try something like this:<br />
<br />
<pre><nowiki>@font-face { font-family: 'Arial'; src: local('Tahoma'); }
@-moz-document domain(wikipedia.org){
@font-face { font-family: 'Arial'; src: local('Arial'); }
</nowiki></pre> -
How to make itunes account for free
how to make itunes account for free?
Since you're posting here, you already have an Apple ID. Click here and follow the rest of the instructions.
(93518)
Maybe you are looking for
-
Using Buys on other devices?
if you buy like a song or a music video from itunes can u like play the video with windows media player instead and put the song on another MP3 player instead of an ipod if u dont have one?
-
Imovie,unable to prepare project for publishing error -50
Hi, I'm done editting my video and i have tried all sort to export it( share- media browser, facebook, export, etc) but it keeps on giving this " unable to prepare for publishing - the project could not be prepared for publishing because an error occ
-
Insert, update and delete on updatable join views
Hi I need to insert, update and delete data in a views. I tried the foloing example http://download-uk.oracle.com/docs/cd/B14117_01/server.101/b10739/views.htm#i1006232 We have two tables: CREATE TABLE dept ( deptno NUMBER(4) PRIMARY KEY, dname VARCH
-
Error message whe trying to download CS6 "Following disk cant be opened MasterCollection_CS6_illegal
-
A report about reachable devices in LMS report tools
Hi all, is possible to display a report about reachable devices in DCR database? The report about unreachable devices is only in the reports menu in LMS 4.2.4 (Reports > Inventory > Management Status >Unreachable Devices). I tried