oracleÖÐͨ¹ýʱ¼ä²éѯÄÚÈݵÄÎÊÌâ - Oracle / ¿ª·¢
ÏÂÃæÊÇ.netÉϵĴúÂë
private void button1_Click(object sender, EventArgs e)
{
DateTime GivenDay = DateTime.Parse(SelectDay.Text.Trim());
Fill_dayview(GivenDay);
}
//ÓÃÓÚÉú³ÉÈÕÊÓͼ
private int Fill_dayview(DateTime GivenDay)
{
//Éú³ÉÒ»¸öеÄDataSet
DataSet DS_DayView = new DataSet();
MySchedule DaySchedule = new MySchedule();
if (!DaySchedule.GetScheduleByGivenDay(ref myConn, ref DS_DayView, ref GivenDay))
return -1;
int nScheduleCount = DS_DayView.Tables["ScheduleList"].Rows.Count;
dg_dayview.DataSource = DS_DayView.Tables["ScheduleList"].DefaultView;
return 0;
}
ÏÂÃæÊÇoracleµÄ´úÂ룺
CREATE OR REPLACE PROCEDURE GetScheduleGivenDay (GivenDay date)
as
task_title task.title%type;
task_detail task.detail%type;
task_begintime task.begintime%type;
task_notifytime task.notifytime%type;
task_neednotify task.neednotify%type;
task_finished task.finished%type;
tasktype_typetitle tasktype.typetitle%type;
priority_title priority.prioritytitle%type;
begin
select
task.title,
task.detail,
task.
Ïà¹ØÎÊ´ð£º
ÎÒÊÇÓÃÔ¶³Ì×ÀÃæÁ¬²Ù×÷·þÎñÆ÷ÉϵÄÊý¾Ý¿â¡£
ÔÚ´´½¨Ò»¸öÓû§Ö®ºó£¬ÔÙÓÃPLSQLµÇ¼£¬ÔòPLSQLËÀµôÁË¡£
ÎҹصôPLSQLÖ®ºó£¬ÓÃÆäËûÓû§Ò²²»ÄܵǼ¡£
ÎÒ°ÑoracleµÄ·þÎñÍ£Ö¹£¬½á¹û¾ÍÊÇoracleµÄ·þÎñ״̬¾ÍÍ£ÁôÔÚ¡°Í ......
ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......
SQL code:
CREATE OR REPLACE PROCEDURE usp_refreshTopN IS
BEGIN
--Îĵµ
INSERT INTO topnresource(resourceId,title,type,cover,brief,properUser,tag,clickAmount,createDate,topNCreateDate,organizat ......
ÎÒÓÃmyeclipseÁ¬½ÓOracleÒ»Ö±±¨´í£¬Ò»ÏÂÊDZ¨´í½ØÍ¼£¬
Çó¸ßÈËÏàÖú¡£
ÎÞͼÎÞÕæÏà....
file:///C:/Documents%20and%20Settings/Administrator/×ÀÃæ/SF/Oracle%20JDBCÁ¬½Ó´íÎó.png
....
Äã¿´¿´Çý¶¯ºÍORACLEµÄ°æ ......