Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÈçºÎ¼ÓÔØÍ¼Æ¬ÔÚsql serverÖÐ

ÎÒ²»ÖªµÀÈçºÎÔÚsql serverÖд洢ͼƬ£¬ÄÇλ¸øÎÒ×ÐϸµÄ½²Ò»Ï²½Öè¡£
²»Òª´æbitÐÍÔÚÊý¾Ý¿âÖÐ,´æÂ·¾¶¾Í¿ÉÒÔÁË
ÕâÑùÏîÄ¿½¨Ò»¸öÎļþ¼ÐÏÂ,ûÓÐͼƬ¶¼Óз¾¶ÁË´æÆðÀ´

±£´æÂ·¾¶µ½Êý¾Ý¿â
»ò±£´æ¶þ½øÖƵ½µ½Image×Ö¶Î
using(SqlConnection conn=new SqlConnection(ConnectString))
{
        conn.Open();
        string strsql = "select photo from testimage where id=" + Request.QueryString["id"];
        SqlCommand cmd = new SqlCommand();
        cmd.Connection = conn;
        cmd.CommandText = strsql;
        SqlDataReader rd = cmd.ExecuteReader();
        byte[] data = null;
        if (rd.Read())
        {
Response.Clear();
            data = (byte[])rd["photo"];
            Response.BinaryWrite(data);
Response.End();
        }
}
Stream ImageStream;
        string Path = FileUpload1.PostedFile.FileName;
        int Size = FileUpload1.PostedFile.ContentLength;
        string Type = FileUpload1.PostedFile.ContentType;
        ImageStream = FileUplo


Ïà¹ØÎÊ´ð£º

sql ʱ¼äÎÊÌâ

sql table±íÓиöÎı¾ÀàÐ͵Äa×ֶΣ¬´æ´¢µÄÄÚÈÝÈ«²¿ÊÇÊý×Ö£¬ÀýÈç2009001£¬2008578ÕâÑùµÄ¸ñʽ£»b×Ö¶ÎÎı¾ÀàÐÍ£¬´æµÄÒ²ÊÇÊý×ÖÀýÈç 001£¬123
aspÀïÃæ strday=100£¬strb=001

ÎÒÏë¶Á³ö£¬´Óa×ֶεÄÊý×Ö°´´óµ½Ð¡µÄË ......

pl/sqlµ¼ÈëÊý¾ÝÎÊÌâ

ÎÒEXCELÖÐÒ»¸öµ¥Ôª¸ñµÄÊý¾ÝÈç  "2009-01","8949-232"

½«Õâ¸öÊý¾ÝÕ³Ìùµ½PL/SQLÖеÄÒ»¸ö±íÖкó,Êý¾ÝÈ·ÊdzÉΪÁË 2009-01,8949-232 ,°ÑËùÓеÄ""¶¼Ã»ÁË,
ÈçºÎÅªÄØ?Çë´ó¼ÒÊÔ ......

sql ÎÊÌâ

PBÖпª·¢µÄ¡£

DateTime startTime=DateTime(em_1.Text)
DateTime endTime=DateTime(em_2.Text)

string sql
sql = dw_1.GetSQLSelect()+"Where (StartTime> '"+startTime+&q ......

Çë½ÌÒ»¸ösqlÊý¾ÝɸѡÎÊÌâ

ÓÐ×Ö¶Î
ÈÕÆÚ£¬id

ÈÕÆÚ²»Öظ´£¬id ÓÐÖØ¸´

ÐèҪɸѡ³ö ÿ¸öidÀïÃæÈÕÆÚ×îÔçµÄÊý¾Ý¡£
SQL code:
select * from ±í t where not exists(select 1 from ±í where t.ÈÕÆÚ>ÈÕÆÚ and id=t.id)

SQL ......

Ê÷sql£¬²»ÖªµÀÈçºÎд

Ò»¸öÊ÷sql£¬²»ÖªµÀÈçºÎд£¨ÕýÔÚ¿¼ÂÇÓô洢¹ý³Ì£©
a±í¡¡£²¸ö×ֶΣ¨id£¬¡¡parentid£©
id£¬¡¡parentid
£±¡¡¡¡£°
£²¡¡¡¡£±
£³¡¡¡¡£²
£´¡¡¡¡£±
£µ¡¡¡¡£²

ÏÈÔÚÎÒÐèÒªµÃµ½ÒÔϵĽá¹û
£±¡¡¡¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ