Download nhạc từ các trang nhạc lớn của Việt Nam

16 Tháng Sáu 2006
@ 07:58
(Được đăng bởi: Phạm Đức Hải)

CheckExistNews chứa trong package PKG_Test

    FUNCTION CheckExistNews(newsurl IN VARCHAR2) RETURN NUMBER AS
    checkvalue NUMBER;
    BEGIN
        
         SELECT COUNT(*) INTO checkvalue
         FROM InfoRetrieved where InfoRetrieved.URL=newsurl;
         RETURN checkvalue;
    END;

C# function :

public bool CheckExistNews(string url)
        {
            bool ret = false;
            int ok=0;
            OracleCommand myCommand = new OracleCommand("PKG_Test.CheckExistNews", connection);
            myCommand.CommandType = CommandType.StoredProcedure;
            myCommand.Parameters.Add(new OracleParameter("newsurl", OracleType.VarChar, 500));
            myCommand.Parameters["newsurl"].Value = url;
            myCommand.Parameters.Add(new OracleParameter("checkvalue", OracleType.Number,1));
            myCommand.Parameters["checkvalue"].Direction = ParameterDirection.ReturnValue;
            
            try
            {
                if(connection.State!= ConnectionState.Open)
                    connection.Open();
                myCommand.ExecuteScalar();
                ok=Convert.ToInt32(myCommand.Parameters["checkvalue"].Value);
                if (ok!=0)
                    ret = true;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message,"CheckExistNews : Error");
            }
            finally
            {
                connection.Close();
            }
            return ret;
        }

Ý kiến [0] - Chuyên mục: .NET |  CSharp | Oracle

Referred by:
call oracle funtion + .net (search.yahoo.com) [Referral]
http://stackoverflow.com/questions/1020348/oracle-select-fro... [Referral]
"oracle function return table" (www.google.com) [Referral]
cache:XcQewHh3eQQJ:www.experts-exchange.com/Database/Oracle/11.x/Q_23223379.html bind variables c# (webcache.googleusercontent.com) [Referral]
"oracle" and "call package from function" (www.google.co.il) [Referral]
http://yandex.ru/yandsearch?text=.net+oracle+package&lr=54 [Referral]
GetReturnValueParam (www.google.com.vn) [Referral]
"GetReturnValueParam" (www.google.com.vn) [Referral]
Package C# (www.google.com.vn) [Referral]
How use OracleBoolean OracleParameter C# (www.google.cz) [Referral]
executing oracle package from C# (www.google.com) [Referral]
http://yandex.ru/yandsearch?text=package+oracle+c%23&clid=48... [Referral]
c# how to call oracle function return boolean (www.google.mn) [Referral]
c# call oracle function (www.google.co.za) [Referral]
oraclecommand function (www.google.com) [Referral]
call oracle function in c# (www.google.ca) [Referral]
call oracle function from java (www.google.com.vn) [Referral]
c# oracle pakage function (www.google.com.vn) [Referral]
c# oracle package function (www.google.com.vn) [Referral]
c# calling oracle function (www.google.lt) [Referral]
call oracle fucntion in c# (www.google.ca) [Referral]
oracle command to call function (www.google.co.in) [Referral]
package oracle .net c# (www.google.gr) [Referral]
calling oracle function from c#.net (www.google.co.in) [Referral]
http://www.google.pl/ [Referral]
C# ORACLECOMMAND function (www.google.com.hk) [Referral]
oraclecommand function return (www.google.nl) [Referral]
How to Call Package Oracle from C# (www.google.co.id) [Referral]
http://www.google.co.th/ [Referral]
C# call oracle package (www.google.com.hk) [Referral]
c#.net get value from oracle function OracleCommand package function (www.google.be) [Referral]
how tu use oracle function in c# (www.google.com.tr) [Referral]
c# oracle function in package (www.google.pl) [Referral]
c# call oracle package (www.google.com) [Referral]
c# with oracle package (www.google.com) [Referral]
oraclecommand function (www.google.com) [Referral]
http://www.google.com/ [Referral]
OracleCommand (www.google.com.vn) [Referral]

Họ tên
E-mail
(sẽ hiển thị gravatar theo email của bạn)
Trang chủ
Bộ gõ Tắt TELEX VNI
Ý kiến (Không dùng HTML)  

Nhập mã kiểm tra :(chống xì-pum ý mà):