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.
Ïà¹ØÎÊ´ð£º
ÓÃPL/SQL µÇ½ʱµ¯³ö±¨´í´°¿Ú£¬´íÎóÈçÏ£¡
ORA-01034:ORACLE not available
ORA-27101:shared memory realm does not exist
ÇëÎÊ£¬ÓÐûÓÐÈËÓöµ½ÕâÖÖÇé¿ö£¬Ôõô½â¾ö£¿Ð»Ð»£¡
1. Oracle sid ÕýÈ ......
¼ÙÉètable01 ÖÐÓÐ ÒÔÏÂ×ÊÁÏ
emp_no emp_name
------- ------------
0001 TOM
0002 JOHN
0003 MARY
³£Óõ绰
¶øÎÒÃÇÒªµÃµ½ÒÔϵÄOUTPUT (»òÊǸ÷ÖÖÆäËûµÄoutput)
0001,TOM
0002,JOHN
......
SQL code:
CREATE OR REPLACE PROCEDURE usp_refreshTopN IS
BEGIN
--Îĵµ
INSERT INTO topnresource(resourceId,title,type,cover,brief,properUser,tag,clickAmount,createDate,topNCreateDate,organizat ......
select distinct '1' t1,'2' t2,'3' t3,'4' t4 from table ²é³öÀ´µÄ½á¹ûΪ
1,2,3,4
ÎÒÏëµÃÒÔÏÂÕâÑùµÄЧ¹û
1
2
3
4
ÇëÎÊÒ»ÏÂÓÐʲô°ì·¨¿ÉÒÔ½â¾ö???
ûÓкõķ½·¨£¬ÓÃunion£¬Ò»ÌõÌõ¼Ç¼ƴ½Ó
SQL code:
wi ......
1.ÏÖÔÚϵͳÊÇ64λµÄserver2003£¨web·þÎñÆ÷IIS6.0£©×°µÄÊÇ10gµÄoracle¿Í»§¶Ë¡£
2.Êý¾Ý¿â·þÎñÆ÷ͬÑùÊÇ32λµÄserver2003µÄoracle10g¡£
3.web·þÎñÆ÷ÉÏÓÃsqlplus·ÃÎÊÊý¾Ý¿â-Õý³££»
vs2008ÄÚ²¿½¨Á¢Êý¾ÝÔ´£¬·ÃÎÊ ......