亚洲精品视频在线看,亚洲日韩在线第一页,亚洲丰满熟女一区二区vhttp://www.tkk7.com/zl4393753/just do itzh-cnMon, 12 May 2025 12:10:44 GMTMon, 12 May 2025 12:10:44 GMT60oracle sign()http://www.tkk7.com/zl4393753/archive/2010/11/15/338084.htmlNeil's NoteBookNeil's NoteBookMon, 15 Nov 2010 05:47:00 GMThttp://www.tkk7.com/zl4393753/archive/2010/11/15/338084.htmlhttp://www.tkk7.com/zl4393753/comments/338084.htmlhttp://www.tkk7.com/zl4393753/archive/2010/11/15/338084.html#Feedback0http://www.tkk7.com/zl4393753/comments/commentRss/338084.htmlhttp://www.tkk7.com/zl4393753/services/trackbacks/338084.html
比較大小
select decode(sign(變量1-變量2),-1,變量1,變量2) from dual; --取較小值
sign()函數(shù)根據(jù)某個(gè)值是0、正數(shù)還是負(fù)數(shù),分別返回0、1、-1

取最大值
select greatest('3', '5') from dual



Neil's NoteBook 2010-11-15 13:47 發(fā)表評(píng)論
]]>
ORACLE 調(diào)整數(shù)據(jù)庫內(nèi)存http://www.tkk7.com/zl4393753/archive/2010/11/11/337786.htmlNeil's NoteBookNeil's NoteBookThu, 11 Nov 2010 03:03:00 GMThttp://www.tkk7.com/zl4393753/archive/2010/11/11/337786.htmlhttp://www.tkk7.com/zl4393753/comments/337786.htmlhttp://www.tkk7.com/zl4393753/archive/2010/11/11/337786.html#Feedback0http://www.tkk7.com/zl4393753/comments/commentRss/337786.htmlhttp://www.tkk7.com/zl4393753/services/trackbacks/337786.html

如何才能優(yōu)化oracle的內(nèi)存占用情況呢?為了開發(fā)的方便,想減少oracle平時(shí)占用的內(nèi)存。下面就為您介紹一個(gè)通過調(diào)整oracle內(nèi)存參數(shù)實(shí)現(xiàn)減少內(nèi)存占用的方法,供您參考學(xué)習(xí)。

解決方法:

sqlplus “/ as sysdba"  

 create pfile='d:/cj.ora' from spfile;  

然后去你的oracle安裝目錄

找一個(gè)init數(shù)據(jù)庫名.ora這樣一個(gè)文件

把幾個(gè)oracle內(nèi)存參數(shù)改小點(diǎn)

一個(gè)2G的內(nèi)存是如下配置的:

*.sga_max_size=712M

*.large_pool_size=8M

*.shared_pool_size=250M

*.sort_area_size=0.5M

*.db_cache_size=350M

然后shutdown數(shù)據(jù)庫

shutdown immediate;  

 create spfile from pfile='d:/cj2.ora';  

 startup;  

然后啟動(dòng),就可以了。

以上就是調(diào)整oracle內(nèi)存參數(shù),減少數(shù)據(jù)庫內(nèi)存占用的方法介紹。



Neil's NoteBook 2010-11-11 11:03 發(fā)表評(píng)論
]]>
Oracle 動(dòng)態(tài)調(diào)用存儲(chǔ)過程http://www.tkk7.com/zl4393753/archive/2010/11/08/337510.htmlNeil's NoteBookNeil's NoteBookMon, 08 Nov 2010 03:30:00 GMThttp://www.tkk7.com/zl4393753/archive/2010/11/08/337510.htmlhttp://www.tkk7.com/zl4393753/comments/337510.htmlhttp://www.tkk7.com/zl4393753/archive/2010/11/08/337510.html#Feedback0http://www.tkk7.com/zl4393753/comments/commentRss/337510.htmlhttp://www.tkk7.com/zl4393753/services/trackbacks/337510.html1 EXECUTE IMMEDIATE 'begin '||proc_name|| '(:name, :name2); end;' using v_name, v_name2;

Neil's NoteBook 2010-11-08 11:30 發(fā)表評(píng)論
]]>
oracle 遞歸查詢http://www.tkk7.com/zl4393753/archive/2010/10/19/335526.htmlNeil's NoteBookNeil's NoteBookTue, 19 Oct 2010 02:19:00 GMThttp://www.tkk7.com/zl4393753/archive/2010/10/19/335526.htmlhttp://www.tkk7.com/zl4393753/comments/335526.htmlhttp://www.tkk7.com/zl4393753/archive/2010/10/19/335526.html#Feedback0http://www.tkk7.com/zl4393753/comments/commentRss/335526.htmlhttp://www.tkk7.com/zl4393753/services/trackbacks/335526.html1. 通過子節(jié)點(diǎn)向根節(jié)點(diǎn)追朔,語法:
select * from da_tree start with id='195' connect by prior parentid=id;
2. 通過根節(jié)點(diǎn)遍歷子節(jié)點(diǎn),語法:
select * from da_tree start with parentid='21' connect by prior id=parentid;

oracle中的select語句可以用START WITH...CONNECT BY PRIOR子句實(shí)現(xiàn)遞歸查詢,connect by 是結(jié)構(gòu)化查詢中用到的,其基本語法是:

Java代碼

select * from tablename start with cond1 connect by cond2 where cond3;

簡單說來是將一個(gè)樹狀結(jié)構(gòu)存儲(chǔ)在一張表里,比如一個(gè)表中存在兩個(gè)字段:

id,parentid那么通過表示每一條記錄的parent是誰,就可以形成一個(gè)樹狀結(jié)構(gòu)。

用上述語法的查詢可以取得這棵樹的所有記錄。




Neil's NoteBook 2010-10-19 10:19 發(fā)表評(píng)論
]]>
創(chuàng)建自定義返回按鈕http://www.tkk7.com/zl4393753/archive/2010/10/13/335069.htmlNeil's NoteBookNeil's NoteBookWed, 13 Oct 2010 14:14:00 GMThttp://www.tkk7.com/zl4393753/archive/2010/10/13/335069.htmlhttp://www.tkk7.com/zl4393753/comments/335069.htmlhttp://www.tkk7.com/zl4393753/archive/2010/10/13/335069.html#Feedback0http://www.tkk7.com/zl4393753/comments/commentRss/335069.htmlhttp://www.tkk7.com/zl4393753/services/trackbacks/335069.html
UIBarButtonItem *backButton = [[[UIBarButtonItem alloc] initWithTitle:@"my back button" style:UIBarButtonItemStyleBordered target:nil action:nil] autorelease]; 
self.navigationItem.leftBarButtonItem = backButton;


Neil's NoteBook 2010-10-13 22:14 發(fā)表評(píng)論
]]>
Iphone 修改默認(rèn)返回的名稱http://www.tkk7.com/zl4393753/archive/2010/10/06/333848.htmlNeil's NoteBookNeil's NoteBookWed, 06 Oct 2010 13:50:00 GMThttp://www.tkk7.com/zl4393753/archive/2010/10/06/333848.htmlhttp://www.tkk7.com/zl4393753/comments/333848.htmlhttp://www.tkk7.com/zl4393753/archive/2010/10/06/333848.html#Feedback0http://www.tkk7.com/zl4393753/comments/commentRss/333848.htmlhttp://www.tkk7.com/zl4393753/services/trackbacks/333848.html

Iphone默認(rèn)返回按鈕的文字是前一個(gè)view的title,

如果需要修改默認(rèn)的返回名稱,需要在前一個(gè)頁面的viewDidLoad事件中進(jìn)行設(shè)置:

 UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"取消" style:UIBarButtonItemStylePlain target:nil action:nil];

self.navigationItem.backBarButtonItem = backButton;
[backButton release];


Neil's NoteBook 2010-10-06 21:50 發(fā)表評(píng)論
]]>
Iphone 帶NavigationBar的ModalViewhttp://www.tkk7.com/zl4393753/archive/2010/10/06/333832.htmlNeil's NoteBookNeil's NoteBookWed, 06 Oct 2010 10:16:00 GMThttp://www.tkk7.com/zl4393753/archive/2010/10/06/333832.htmlhttp://www.tkk7.com/zl4393753/comments/333832.htmlhttp://www.tkk7.com/zl4393753/archive/2010/10/06/333832.html#Feedback0http://www.tkk7.com/zl4393753/comments/commentRss/333832.htmlhttp://www.tkk7.com/zl4393753/services/trackbacks/333832.html 悲劇的thinkpad。。。所以不能截圖。。。稀爛!
1. 創(chuàng)建一個(gè)viewcontroller,比如SettingViewController,同時(shí)創(chuàng)建實(shí)現(xiàn)文件和頭文件,不多說
2. 創(chuàng)建該viewcontroller對(duì)應(yīng)的view文件,比如SettingView.xib,沒什么好說的
3. 雙擊剛才創(chuàng)建的xib文件,指定class為第一步創(chuàng)建的viewcontroller,在interface builder中將view和file owner連接起來
4. 在創(chuàng)建的SettingViewController.h文件中定義一個(gè)bool類型的變量,該變量用來指示modal view是否已彈出,代碼如下:

@interface SettingViewController : UIViewController {

BOOL isPushedView;

}

@property (nonatomic, readwrite) BOOL isPushedView;

5. 在SettingViewController.m文件中添加具體實(shí)現(xiàn)代碼,如下:

@implementation SettingViewController

@synthesize isPushedView;

- (void)viewDidLoad {

    [super viewDidLoad];

    if(isPushedView == NO) {

        self.navigationItem.title = @"設(shè)置";

        self.navigationController.navigationBar.barStyle = UIBarStyleBlack;

        self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"完成" style:UIBarButtonItemStylePlain target:self     action:@selector(cancel_Clicked:)] autorelease];

    }

}


-(void) cancel_Clicked:(id)sender {    

    [self.navigationController dismissModalViewControllerAnimated:YES];     

}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {

    // Return YES for supported orientations

    return (interfaceOrientation == UIInterfaceOrientationPortrait);

}

6. 在RootViewController.h文件中定義變量,代碼如下:

@class SettingViewController;

@interface RootViewController : UITableViewController {

SettingViewController *settingViewController;

UINavigationController *settingNavController;

}

7. 在RootViewController.m文件中添加實(shí)現(xiàn)代碼,如下:

- (void) settingClicked {  

if(settingViewController == nil) {

settingViewController = [[SettingViewController alloc] initWithNibName:@"SettingView" bundle:[NSBundle mainBundle]];

settingViewController.isPushedView = NO;

}

    if(settingNavController == nil) {

        settingNavController = [[UINavigationController alloc] initWithRootViewController:settingViewController];

[self.navigationController presentModalViewController:settingNavController animated:YES];  

}

}

8. DONE!!!



Neil's NoteBook 2010-10-06 18:16 發(fā)表評(píng)論
]]>
Iphone 不同頁面間跳轉(zhuǎn)http://www.tkk7.com/zl4393753/archive/2010/10/06/333828.htmlNeil's NoteBookNeil's NoteBookWed, 06 Oct 2010 08:34:00 GMThttp://www.tkk7.com/zl4393753/archive/2010/10/06/333828.htmlhttp://www.tkk7.com/zl4393753/comments/333828.htmlhttp://www.tkk7.com/zl4393753/archive/2010/10/06/333828.html#Feedback1http://www.tkk7.com/zl4393753/comments/commentRss/333828.htmlhttp://www.tkk7.com/zl4393753/services/trackbacks/333828.html 2. 創(chuàng)建一個(gè)view,比如 NewOrderView.xib
3. 雙擊打開NewOrderView.xib,指定其class為 NewOrderViewController,并在 Interface Builder中將view與File Owner連接起來
4. 在RootViewController.h文件中定義 NewOrderViewController, 設(shè)置其為屬性,代碼如下:

@class NewOrderViewController;

@interface RootViewController : UITableViewController {

NewOrderViewController *newOrderViewController;

}

@property (nonatomic, retain) NewOrderViewController *newOrderViewController;

5. 在RootViewController.m文件中實(shí)現(xiàn)跳轉(zhuǎn),代碼如下:
//添加按鈕

- (void)viewDidLoad {

    [super viewDidLoad];


    self.navigationItem.title = @"訂單列表";

    self.navigationController.navigationBar.barStyle = UIBarStyleBlack;

    UIBarButtonItem *buttonEdit = [[[UIBarButtonItem alloc] initWithTitle:@"編輯" style:UIBarButtonItemStyleBordered target:self            action:@selector(editCharacters)] autorelease];

    UIBarButtonItem *buttonAdd = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(showNewOrderView)] autorelease];

    self.navigationItem.leftBarButtonItem=buttonEdit;

    self.navigationItem.rightBarButtonItem=buttonAdd;

//實(shí)現(xiàn)跳轉(zhuǎn)

- (void) showNewOrderView {

    if (self.newOrderViewController == nil) {

        NewOrderViewController *newOrder = [[NewOrderViewController alloc] initWithNibName:@"NewOrderView" bundle:nil];

        self.newOrderViewController = newOrder;

        [newOrder release];

    }

    [self.navigationController pushViewController:self.newOrderViewController animated:YES];



Neil's NoteBook 2010-10-06 16:34 發(fā)表評(píng)論
]]>
Iphone開發(fā) 可編輯表格http://www.tkk7.com/zl4393753/archive/2010/10/04/333730.htmlNeil's NoteBookNeil's NoteBookMon, 04 Oct 2010 07:53:00 GMThttp://www.tkk7.com/zl4393753/archive/2010/10/04/333730.htmlhttp://www.tkk7.com/zl4393753/comments/333730.htmlhttp://www.tkk7.com/zl4393753/archive/2010/10/04/333730.html#Feedback0http://www.tkk7.com/zl4393753/comments/commentRss/333730.htmlhttp://www.tkk7.com/zl4393753/services/trackbacks/333730.html

In some of the iPhone's default apps, you may find that you can "edit" a table, then have little red minus signs appear to the left of the table, giving you the option to delete those rows. So, how do you do that in your own programs?

The answers, it turns out, is a very simple one:

[self.tableView setEditing:YES animated:YES];

That's literally all you need to do to set up those deletion marks. Then you just need to respond to tableView:commitEditingStyle: forRowAtIndexPath:.

However, there are some nuances, particularly the questions of how you start up a table's editing and how you end it, and I'm going to show some real-world examples of those methods over the course of this article ...

An Actual Example

The program that I've showed off elsewhere in this series makes uses of a tableView's editing functionality by allowing the user to delete characters from the app, each of whom are represented by a table row

First, you need to set up some way to activate the functionality:

- (void)editCharacters {
    [self.tableView setEditing:YES animated:YES];
    UIBarButtonItem *doneButton = [[UIBarButtonItem alloc]
        initWithBarButtonSystemItem:UIBarButtonSystemItemDone
                                           target:self
                                           action:@selector(endTableEditing)];
    self.navigationItem.leftBarButtonItem = doneButton;
    [doneButton release];

    self.navigationItem.rightBarButtonItem = nil;
}

This method is triggered when a user selects an "Edit" button. You'll note that besides starting the editing, I also change around the button in my navbar. That's because when a user is editing I no longer need an "Edit" button, but instead require a "Done" button. You might alternatively set buttons' enabled properties to NO ... but in any case, you always need to give users a way to get out of editing mode.

Your tableView: method will probably delete the table item from your table and/or the data store that it originates from:

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {

    if (editingStyle == UITableViewCellEditingStyleDelete) {
        [self recordWasDeleted:indexPath.row];
    }
}

For completeness state, I'll also include the method call generated when the "Done" button is clicked:

- (void)endTableEditing {
    [self.tableView setEditing:NO animated:YES];
    [self updateButtons];
}

This is pretty much the opposite of my editCharacters method: the editing is turned back off, then the buttons are returned to their original state.

And that's really all you need to do to edit a table: turn editing on, respond to the deletion message, and turn it back off at the end.

Doing More with Table Edits

You do have some other editing possibilities that I'm not going to cover in depth in this article. Most notably, you can adjust the editingStyle property of any individual cell. Apple claims it's set to UITableViewCellEditingStyleNone by default, but it sure looks to me like it's set to UITableViewCellEditingStyleDelete, which is what shows those handsome red minus marks. If you instead want to insert rows, you can set it to UITableViewCellEditingStyleInsert, and then do the appropriate thing when tableView:commitEditingStyle:forRowAtIndexPath: receives input of type insert.

That's it for me and tables for the nonce. If there's any other topics that you'd like covered regarding them, let me know in the comments. In the meantime, I'm planning to next return to my splashView topic, as some folks have requested in comments.



Neil's NoteBook 2010-10-04 15:53 發(fā)表評(píng)論
]]>
雪豹開機(jī)http://www.tkk7.com/zl4393753/archive/2010/09/03/330887.htmlNeil's NoteBookNeil's NoteBookFri, 03 Sep 2010 06:48:00 GMThttp://www.tkk7.com/zl4393753/archive/2010/09/03/330887.htmlhttp://www.tkk7.com/zl4393753/comments/330887.htmlhttp://www.tkk7.com/zl4393753/archive/2010/09/03/330887.html#Feedback0http://www.tkk7.com/zl4393753/comments/commentRss/330887.htmlhttp://www.tkk7.com/zl4393753/services/trackbacks/330887.html每次開機(jī)時(shí)在Bootthink選擇雪豹分區(qū)很麻煩,如果你還需要-x32之類的Flag就更麻煩了。進(jìn)入F8黑白界面后選擇雪豹的20GB分區(qū)后,輸入“# b=0”回車,下次啟動(dòng)時(shí)Bootthink就會(huì)跳過選擇界面,要重現(xiàn)選擇界面開機(jī)時(shí)按住Alt鍵,你也可以輸入“#b=X”:自定義倒計(jì)時(shí)X秒進(jìn)入mac系統(tǒng)。進(jìn)入雪豹后,用PlistEditPro打開/Library/Preference/SystemConfiguaration/com.apple.Boot.plist文件,添加-x32等你需要的啟動(dòng)選項(xiàng)到Kernel Flag項(xiàng)下面即可。這樣,你只需要在開機(jī)時(shí)候選擇Windows還是Bootthink,選擇了bootthink后,就會(huì)自動(dòng)進(jìn)入。
如下:
<plist version="1.0">
<dict>
<key>Kernel</key>
<string>mach_kernel</string>
<key>Kernel Flags</key>
<string>-x32</string>
<key>Boot Graphics</key>
<string>Yes</string>
    <key>GraphicsEnabler</key>
<string>Yes</string>
    <key>Quiet Boot</key>
    <string>No</string>
    <key>Timeout</key>
    <string>5</string>
    <key>Graphics Mode</key>
    <string>1280x800x32</string>
</dict>
</plist>


Neil's NoteBook 2010-09-03 14:48 發(fā)表評(píng)論
]]>
主站蜘蛛池模板: 免费人成视频在线观看视频| 亚洲国产精品尤物yw在线| 成人片黄网站色大片免费| 日韩亚洲精品福利| 亚洲伊人久久精品| 国产精品免费久久久久电影网| 欧美三级在线电影免费| 亚洲专区在线视频| 色屁屁在线观看视频免费| 4虎永免费最新永久免费地址| 亚洲欧洲精品无码AV| 免费人成网站永久| 性做久久久久免费观看| 亚洲手机中文字幕| 免费视频成人片在线观看| 亚洲中文字幕成人在线| 亚洲AV成人无码网天堂| 国产精彩免费视频| 一级做a爰片性色毛片免费网站| 亚洲国产人成精品| 国产vA免费精品高清在线观看| 亚洲福利视频网站| AV免费网址在线观看| 老司机精品免费视频| 国产亚洲午夜高清国产拍精品| 色老头综合免费视频| 亚洲午夜在线一区| 亚洲无码在线播放| 成人免费看黄20分钟| 无码一区二区三区免费| 亚洲一区免费观看| 亚洲av再在线观看| 成人免费午夜无码视频| 无码一区二区三区亚洲人妻| 国产成人精品久久亚洲| 麻豆精品国产免费观看| 免费人成大片在线观看播放电影 | 亚洲一区爱区精品无码| 日韩精品免费电影| 国产免费的野战视频| 久久九九全国免费|