How to partition on string value in 8i
Hi all,
I am on 8.1.7 and want ti use partitioning.
I have a column for holding country_id (like US, GB, JP etc). I want to partition the table on the base of country ids. How can I do that?
I know, in 9i I could have done list partitioning.
Any experiances??
Regards
I think you can create partition by range, with country_id=partition name.
Similar Messages
-
How to convert a string value to date
Dear All,
I am new to powershell script, i was trying to store a Ad user password set date to a variable add, add a number of days to get the expire date.
but when i try to convert the variable to date value, I am getting the error as below.
Please help me......
PS C:\script> $passwordSetDate = (get-aduser user1 -properties * | select PasswordLastSet)
PS C:\script> $passwordSetDate
PasswordLastSet
7/15/2014 8:17:24 PM
PS C:\script> $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)
Cannot find an overload for "ParseExact" and the argument count: "3".
At line:1 char:1
+ $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest
PS C:\script> $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)Dear All,
I am new to powershell script, i was trying to store a Ad user password set date to a variable add, add a number of days to get the expire date.
but when i try to convert the variable to date value, I am getting the error as below.
Please help me......
PS C:\script> $passwordSetDate = (get-aduser user1 -properties * | select PasswordLastSet)
PS C:\script> $passwordSetDate
PasswordLastSet
7/15/2014 8:17:24 PM
PS C:\script> $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)
Cannot find an overload for "ParseExact" and the argument count: "3".
At line:1 char:1
+ $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest
PS C:\script> $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)
In your post you ask how to convert a string value to a date. The value returned from the Get-AdUser is already a date. It does not need to be converted.
Bill has sshown one way to convert a date to a string and there are other methods. You need to clarify your question.
If you are really trying ot convert strings to dates then you can start with this:
[datetime]'01/21/1965 13:33:23'
Most date strings aer autodetected by the class.
¯\_(ツ)_/¯ -
How to capture the string values
Hi Gurus,
Could you plz suggest me how to capture the string value.
My requirement is.
I have a structure field called cnj_stat-sttxt_int and it is storing a value like "REL CDRT AVAC". AND the moddile value CDRT will change according to condtions. now i required to write a logic like if cnj_stat-sttxt_int field contain 'REL' and 'AVAC'. I HAVE TO THROW SOME ERROR.
SO please give some idea about on it...
Its urgent..
points will be rewarded...
Thanks in advance!!!!
Thanks & regards,
Kranthi.if cnj_stat-sttxt_int field contain 'REL' and 'AVAC'. I HAVE TO THROW SOME ERROR.
if cnj_stat-sttxt_int CS 'REL' and cnj_stat-sttxt_int CS 'AVAC'.
THROW SOME ERROR.
endif. -
How to align a String value to the right side inside a table column?
Hi,
I have a text view inside a table column which is mapped to a string attribute. I need to align the text in the text view to the right hand inside the table column. But its always getting aligned towards the left side. I have tried by setting the <b>hAlign</b> property of Element properties of Text View to <b>right / forced right</b> but still the text is getting aligned to the left side.
How do I align the String values in Text View towards the right hand side inside a Table Column?
Thanks and Regards,
Sayan GhoshHello Sayan,
if i do get it right, you are adding an TextView element to a Table Cell. Then you should consider setting aligment within the particular cell. By calling:
YourCell.setHorizontalAlignment(CellHAlign.RIGHT)
regards.
mz -
How to connect input string value to numerical values
Hello,
I am trying to figure out how to connect a single user's input string value to numerical values. Basically I want the user to input the name of a gas that I have a list for (I believe i put the list of gasses in an array>). Then I want to match 2 numerical values "a" and "b" depending on which gas name the user has put in. These "a" and "b" values will be automatically matched with the gas name from a list I put. For example the gas hydrogen has a value of 3 for "a" and 4 for "b. so when the user puts the name "hydrogen" in a string constant, automatically "a" and "b" should be outputted. I will be connecting a and b to a formula
Thanks for any help
Solved!
Go to Solution.student11 wrote: These "a" and "b" values will be automatically matched with the gas name from a list I put. For example the gas hydrogen has a value of 3 for "a" and 4 for "b".
This sounds a lot like an Enum to me. Make sure you type def the enum to make sure updates quickly and easily make it to all copies of the enums.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
How to get the string value from the RichSelectBooleanCheckBox component?
I added a validator to a RichSelectBooleanCheckBox component which is binded to a String attribute of a View Object.
I defined the mapping of boolean value to corresponding String value in the corresponding attribute binding in the page definition.
When the validate() method of my validator was invoked, the new value passed to the validate method() was a Boolean value instead of the converted String value.
I need to write validate() method generically so that it can handle more than one way of mapping boolean values to String values.
How can I get the converted String value in my validator method() from the RichBooleanCheckBox component that was also passed to the validate() method as a parameter?use:
int num = Integer.parseInt(s); -
How to update a string value located on the main VI
Hello
I would like, from a subVI, to update a string value located in the main VI (using References). I was trying to find examples on NI web page but it´s impossible to download them (for more than one month : Error, File Not Found), do everyone has got the same problem?
Thanks for your answer
NicolasHi,
this is from LV help file:
Complete the following steps to create a subVI that includes a control reference directly from a Property Node.
1.On the block diagram, right-click the front panel object terminal for which you want a control reference and select Create»Property Node from the shortcut menu to create a Property Node implicitly linked to the object. You can have multiple Property Nodes for multiple front panel objects.
2.Use the Positioning tool to select the new Property Node and select Edit»Create SubVI from menu. LabVIEW automatically creates a control reference to the control on the block diagram of the main VI, creates a subVI that contains a control refnum wired to a Property Node, and wires the control reference on the main VI to the
control refnum input terminal of the new subVI.
Note: Select several Property Nodes at once to create a subVI with multiple control refnums and Property Nodes.
3.Double-click the subVI to open it. Modify the Property Node and other elements of the subVI as you do in any other VI.
4. If you want to change values of control then select "Value" property in Property node.
I've attached the examples.
Good luck.
Oleg Chutko.
Attachments:
Ref.zip 11 KB -
How to retrieve query string value from the URL in my portlet
Hi,
When user clicks on "Advance Search", i am redirecting to page in the community. At the same i am adding some more values to the query string (to the URL).
My URL will look like this.
http://ctp-mc0149/portal/server.pt?space=CommunityPage&parentname=CommunityPage&parentid=0&in_hi_userid=200&cached=true&control=SetCommunity&PageID=202&CommunityID=200&searchType=2
Now in one of my portlet in that page, i want to retrieve the query string values from the URL.
Please help me regarding this.
Thanks in advance.
Thanks,
sreekanth.Hi,
Look at the following threads,
For programmatically getting the iview properties,
Programmatically getting iView Properties
Also,
Get Properties of IView Programmatically
Permanent change of iView property programmatically
Hope these threads help u.
Regards
Srinivasan T -
How to send a String value from Servlet to Action class in Struts .
when iam trying to send string value from Servlet to Struts Action class through Http Session, iam getting null value, iam really in big confusion, help me.
please elaborate clearly or put you code of both action and servlet here
Are both of them in same web application -
How to pass a string value from XL sheet cell to SQL query.
Hi,
I am using SQL query in XL sheet to fetch some data. for that i am using ODBC connection. Now I want to pass a string from XL sheet Cell value in the where clause of Select statement, Please let me know how to do this.
Below is My code:
nge("A4").Select
With ActiveSheet.QueryTables.Add(Connection:= _
"ODBC;DRIVER={Microsoft ODBC for Oracle};UID=xyz;PWD=xyz;SERVER=xyz;" _
, Destination:=Range("A4"))
.CommandText = Array( _
"SELECT CRYSTAL_REPORT1.PROJECT, CRYSTAL_REPORT1.OBJECT" & Chr(13) & "" & Chr(10) & "FROM NAIODEV.CRYSTAL_REPORT1 CRYSTAL_REPORT1" _
.Name = "Query from gg"
Thanks,
PriyaWhat does "XL" (whatever that is) have to do with Crystal Reports which is what you are obviously working with have to do with the Oracle database?
The rules for using Crystal with Oracle are quite clearly described in all the Crystal Reports docs ... you MUST use IN OUT ref cursors unless you are doing direct table or view access. -
How to send a string value to a mail_id
Hi everybody
I am trying to send a password to a user mail_id.
I got the password from database as an object value.
so how to convert this object to string type and send to the user Mail_id.
Please help
Message was edited by:
vizcWe retrive the password as string but stored in an object.
So i want to get back once again to string
Object resultObj = null;
try
resultObj = ServiceUtils.verifyQuerry(argList);
// Here we get the password from DB
catch(MoveoException mex)
throw new ServletException(mex.getMessage(),mex);
if(null != resultObj)
CompanyDO companyDO = (CompanyDO) resultObj;
// Here i want print the password
return nextPage;
}How to do this ??? -
How to convert multiple string values in a single row from nvarchar to int
suppose I have a table like below.all these values are in nvarchar. How would I find the minimum year from START_DATE??
PRODUCT_CODE
PRODUCT_DESC
START_DATE
P00002933
VITAMINE C
2005,2000,2011,2001,2002
P00003087
BIOFENAC
2011,2009,2006,2007,2004,2005
P00000155
AMOXYPEN
2006,2007,2008,2009,0000,2001
P00002325
SAHHA FARINE
2008,2003,2002,2001,2009
P00005666
AMOXYPEN
2007,2008,2006,2009,0000,2001Create the split function:
CREATE FUNCTION Split (
@InputString VARCHAR(8000),
@Delimiter VARCHAR(50)
RETURNS @Items TABLE (
Item VARCHAR(8000)
AS
BEGIN
IF @Delimiter = ' '
BEGIN
SET @Delimiter = ','
SET @InputString = REPLACE(@InputString, ' ', @Delimiter)
END
IF (@Delimiter IS NULL OR @Delimiter = '')
SET @Delimiter = ','
--INSERT INTO @Items VALUES (@Delimiter) -- Diagnostic
--INSERT INTO @Items VALUES (@InputString) -- Diagnostic
DECLARE @Item VARCHAR(8000)
DECLARE @ItemList VARCHAR(8000)
DECLARE @DelimIndex INT
SET @ItemList = @InputString
SET @DelimIndex = CHARINDEX(@Delimiter, @ItemList, 0)
WHILE (@DelimIndex != 0)
BEGIN
SET @Item = SUBSTRING(@ItemList, 0, @DelimIndex)
INSERT INTO @Items VALUES (@Item)
-- Set @ItemList = @ItemList minus one less item
SET @ItemList = SUBSTRING(@ItemList, @DelimIndex+1, LEN(@ItemList)-@DelimIndex)
SET @DelimIndex = CHARINDEX(@Delimiter, @ItemList, 0)
END -- End WHILE
IF @Item IS NOT NULL -- At least one delimiter was encountered in @InputString
BEGIN
SET @Item = @ItemList
INSERT INTO @Items VALUES (@Item)
END
-- No delimiters were encountered in @InputString, so just return @InputString
ELSE INSERT INTO @Items VALUES (@InputString)
RETURN
END -- End Function
GO
Use the below script:
create table Table1 (Product_Code varchar(50),Product_Desc varchar(10),sStart_date varchar(MAX))
Insert into Table1 Values('P00002933','VITAMINE C','2005,2000,2011,2001,2002'),
('P00003087','BIOFENAC','2011,2009,2006,2007,2004,2005')
Select Product_Code,Product_Desc ,MIN(Item) Minstart_date
From Table1 A
Cross apply Split(A.sStart_date,',') B
Group by Product_Code,Product_Desc
Drop table Table1 -
How to extract sub string value from a string?
Hi,
I need to know how can i extract sub strings from a main
string, something like this:
main variable-------->"2087-5E2SE-19-JG7BC"
i want to split it into like this:
sub_main_1 variable---------> "2087"
sub_main_2 variable---------> "5E2SE"
sub_main_2 variable---------> "19"
sub_main_2 variable---------> "JG7BC"
I did the same in flash by using Split and arrays, like this:
var my_str:String = "2087-5E2SE-19-JG7BC";
var my_array:Array = my_str.split("-");
for (var i = 0; i<my_array.length; i++) {
trace(my_array
this.aaa1 = my_array[1];
this.aaa2 = my_array[2];
this.aaa3 = my_array[3];
this.aaa4 = my_array[4];
My question is that how can i do the same in director ?? i
haven't find any split function in director.
Thanks in advance,
AmirYou do a similar thing in Director using the itemDelimiter,
which is a
_player object property in MX2004. By default, it's a comma:
put _player.itemDelimiter
It will let you get specific items within a string.
p = "2087-5E2SE-19-JG7BC"
_player.itemDelimiter = "-"
put p.item[1]
-- "2087"
You could use it to write yourself a little split function:
on split(theString, theDelimiter)
oldDelim = _player.itemDelimiter
_player.itemDelimiter = theDelimiter
itemList = []
repeat with cnt = 1 to theString.item.count
itemList.add(theString.item[cnt])
end repeat
return itemList
end
p = "2087-5E2SE-19-JG7BC"
a = split(p, "-")
put a
-- ["2087", "5E2SE", "19", "JG7BC"]
Dave -
Adobe Community Expert
www.blurredistinction.com
http://www.adobe.com/communities/experts/ -
How to retrieve a string value from a PHP function call
Should this string be the return value of the PHP function?
Or should it be embedded in the response HTML? Any examples?This is what I got so far:
footer.mxml in Flex Builder 3:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="ts_request()">
<mx:Script>
<![CDATA[
public function ts_request():void {
timestampRequest.send();
]]>
</mx:Script>
<mx:Canvas width="836" height="36"
backgroundColor="#05075C">
<mx:Label id="timestamp"
text="{timestampRequest.lastResult.timestamp}" color="#FEFEFE"
height="20" y="10" textAlign="left" width="221" x="10"/>
</mx:Canvas>
<mx:HTTPService id="timestampRequest" url="
http://www.ABC.com/timestamp.php"
useProxy="false" method="POST" />
</mx:Application>
Here is the timestamp.php on the www.ABC.com web server. I
have tested the php by directly access it with
"www.ABC.com/timestamp.php" and it shows the timestamp correctly:
<?php
putenv($timezone);
$Return = "<timestamp>".date("m/d/Y H:i:s", time())."
CST"."</timestamp>";
print($Return);
?>
When I run footer.mxml in Flex 3 Builder, I got an error:
This file cannot be launched.
Where did I do wrong? -
How to compare 2 string value?
i am creating a change password page, but having some problem,
i use this
if ( oldpassword == OrgPass)
out.println("correct pass");
else
out.println("incorrect pass");
both oldpassword and OrgPass are string, but even though the value of oldpassword and Orgpass are the same, it will still return a incorrect pass. Can anyone please help me with this?instead of this
if ( oldpassword == OrgPass)
out.println("correct pass");
try this
if ( oldpassword.equals(OrgPass))
out.println("correct pass");
Maybe you are looking for
-
PLEASE HELP ! While updating My Xperia Z1 , my pc hanged during the process and .
While updating My Xperia Z1 , my pc hanged during the process ( so , installation of update was interrupted , guess it's same as getting your USB connection disconnected )and now the phone won't turn on . Its shows the Sony Xperia logo , then shows a
-
When streaming Vid with flash player, audio and video are not in sync
With Flash 11.6, audio and video are not in sync. Video is slower. Using Firefox 20.0.1
-
Enable 'comments' on pdfs printed from within osx
Hello there... We have osx 10.4 on our network at school (soon all machines will be running 10.4.10). I want to get the kids into printing their work to pdf rather than paper and saving these in their folders. What I want to do is enable the 'comment
-
10.5.7 - Why do so many people have issues updating?
I have never had a single issue updating. I have never had to repair disk permission or anything like that, and every single update always goes without a hitch. I don't get it, are we this paranoid? I understand you should back up just in case anythi
-
tell me some cluster tables