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

access»ñÈ¡×Ö¶ÎÃû - .NET¼¼Êõ / ASP.NET

ÔÚasp.netÖУ¬ÈçºÎͨ¹ý³ÌÐò»ñÈ¡accessÊý¾Ý¿âÖеÄ×Ö¶ÎÃû¡£ÎҵıíÃûÊǹ̶¨µÄ£¡
ÄܸøÎÒÍêÕû´úÂëÂ𣿻òÊÇ°¸Àý¡£¡£¡£
°Ù¶È£º¡¡C# access ×Ö¶ÎÃû

SQL code:
select name from syscolunms where object_id=object_id('yourtablename') order by colid


//...
//1µÚ¼¸ÁÐ
string fd_name = myDataSet.Tables["Table_name"].Columns[1].Caption;

ÒýÓÃ
SQL code
select name from syscolunms where object_id=object_id('yourtablename') order by colid



Õâ¸öÔÚaccessÖв»ºÃÓÃ

upupupupup

DataTable dt;
  private OleDbConnection conn;
conn = new OleDbConnection("Á¬½ÓÊý¾Ý¿â");
  conn.Open();
  conn.GetOleDbSchemaTable(OleDbSchemaGuid.Columns, new Object[] { null, null, TableName, null });
   
 
  for(int i=0;i<dt.Rows.Count;i++)
  {
  dt.Rows[0]["COLUMN_NAME"].ToString();
   
}
   
 

ÊÔÊÔ...

.......................

111111


oledb 連½Ó·½Ê½
¿ÉÒÔÓÃ
SqlConnection µÄGetOleDbSchemaTable·½·¨來獲È¡ËùÓеıíÃû
10樓ÒÑ經給³


Ïà¹ØÎÊ´ð£º

ÔÚasp.netÀïÃæ½Å±¾³ö´í - .NET¼¼Êõ / ASP.NET

function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;

var div1=document.getElementById("divPwd");

if (pwd.value=="")
{
......

¹ØÓÚASP.NETÉú³É¾²Ì¬Ò³Ãæ - .NET¼¼Êõ / ASP.NET

ÊÇÕâÑù×ӵģ¬ÎÒÏÖÔÚ×öÁËÒ»¸öÍøÖ·µ¼º½µÄÍøÕ¾£¬Ê×ҳȫÊÇÍøÃûºÍÁ´½Ó£¬ÀàËÆhao123µÄÊ×Ò³£¬µ«ÊÇÓлáÔ±µÇ¼£¬»áÔ±µÇ¼ºó¿ÉÒÔÊ×´ÎÍøÕ¾£¬»áÔ±µÇ¼ºó»áÏÔʾÊղصÄÍøÕ¾³öÀ´£¬ÒòΪÊ×ҳͷ²¿Ï»áÓÐÒ»¸öÎÒµÄÊղصÄÀ¸Ä¿...ÏÖÔÚÿ´ò¿ ......

ʹÓôøÓû§ÃûºÍÃÜÂëµÄACCESSÁ¬½Ó·½Ê½ - .NET¼¼Êõ / C#

ʹÓÃACCESS×î´óµÄÒþ»¼¾ÍÊDz»°²È«¡£½ñÌì¶ÔACCESSÊý¾Ý¿âÉèÖÃÁËÒ»¸öÃÜÂ룬±ØÐëʹÓÃÃÜÂë²ÅÄÜ´ò¿ª£¬µ«ÊÇÔÚ³ÌÐòÖÐÈ´ÎÞ·¨Á¬½ÓÊý¾Ý¿âÁË¡£´ó¼ÒÖªµÀʹÓÃÓû§ÃûºÍÃÜÂ룬ÈçºÎÁ¬½ÓACCESSÊý¾Ý¿â£¿Ã²ËÆACCESSµÄÓû§Ãû»¹²»ÖªµÀ£¿Ö»Öª ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ