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

°ÑÒ»¸ösqlserverÌáÈ¡µÄdataset²åÈëµ½sqlce

Êý¾Ý10WÌõÒÔÉÏ,wm6.5ƽ̨,ÄÚ´æÓÐÏÞ

C# code:
private void connserver()
{

Cursor.Current = Cursors.WaitCursor;
try
{
DataSet ds = new DataSet();
SqlCeConnection conn = new SqlCeConnection(constr);
SqlCeCommand cmd = new SqlCeCommand("select vcbarcode,cdeptid,citemid,cbaseitemid,cname,cmeasure,cmodel,funitqty,fnowinprice,fsellprice from vco_items ", conn);
SqlCeDataAdapter clientda = new SqlCeDataAdapter();
SqlCeCommand insert = new SqlCeCommand("insert into vco_items(vcbarcode,cdeptid,citemid,cbaseitemid,cname,cmeasure,cmodel,funitqty,fnowinprice,fsellprice) select @vcbarcode,@cdeptid,@citemid,@cbaseitemid,@cname,@cmeasure,@cmodel,@funitqty,@fnowinprice,@fsellprice");
insert.Parameters.Add("@vcbarcode", SqlDbType.NVarChar, 30, "vcbarcode");
insert.Parameters.Add("@cdeptid", SqlDbType.NChar, 4, "cdeptid");
insert.Parameters.Add("@citemid", SqlDbType.NChar, 6, "citemid");
insert.Parameters.Add("@cbaseitemid", SqlDbType.NChar, 6, "cbaseitemid");
insert.Parameters.Add("@cname", SqlDbType.NVarChar, 50, "cnam


Ïà¹ØÎÊ´ð£º

java³ÌÐòÁ¬½ÓSQlServerµÄÎÊÌâ - Java / Java SE

import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class QueryTest&n ......

ado sqlserver ´æ´¢¹ý³Ì - MS-SQL Server / ÒÉÄÑÎÊÌâ

Õâ¸öÀý³ÌÊý¾Ý¿âpubs´æ´¢¹ý³Ìreptq1ÄÜÕýÈ·Ö´ÐУ¬
¸Ä³É×Ô¼ºµÄÊý¾Ý¿âºÍ´æ´¢¹ý³Ì¾Í±¨´í3704£¨Ó¦ÓóÌÐò¶¨Òå»ò¶ÔÏó¶¨Òå´íÎó£©
´æ´¢¹ý³ÌÔÚ²éѯ·ÖÎöÆ÷ÄÜÕýÈ·Ö´ÐУ¬¶øÇÒÒ»Ö±ÔÚÓõģ¬ÕæÊÇÔÎËÀ¡£
Private Sub CommandButton5 ......

sqlserver order byÅÅÐòÎÊÌâ - .NET¼¼Êõ / ASP.NET

Order by ʱ¼ä×ֶΠdesc
 ÅŲ»ÁË˳ÐòÁË
Ç°ÌáÊÇÎÒÕâ¸öÊÇÒ»¸öÊÔͼ£¿
ËûÔÚÐÞ¸ÄÊÔͼÀïÃæËüÅÅÐòÁË£¡¿ÉÊǵÈÎÒ´ò¿ªÊÔͼ²é¿´µÄʱºòÊý¾Ý²¢Ã»ÓнøÐÐÅÅÐò£¡£¡ºÜÊÇÓôÃÆ£¡Ï£Íû¸÷Ϊ¸ßÊÖÖ¸µã£¡£¡
¼±¼±£¡£¡£¡£¡
ËûÔÚÐÞ¸ÄÊ ......

SqlServer²åÈëÂýµÄÎÊÌâ½â¾ö - .NET¼¼Êõ / ASP.NET

http://blog.csdn.net/realwar/archive/2010/05/29/5632359.aspx
ͦÓд´Ò⣬¾ÓÈ»°Ñ¾Û¼¯Ë÷Òý½¨Á¢ÄÇô¶à×ֶΡ£
Îҵľۼ¯Ë÷Òý¼¸ºõ¶¼ÊÇÀ˷Ѿ͸øidÓá£

¶¥ÏÂÌùÔÙ¿´£¡

see it .

²»´í £¬Õâ¸ö¶«Î÷ÖµµÃÒ»¿´£¡
......

sqlserverÑ­»·Éú³ÉÊý¾Ý - MS-SQL Server / »ù´¡Àà

ÏÖÔÚÓÐÒ»¸ö±ítable1£¬Ö»ÓÐÒ»¸ö×ֶΣ¬varchar£¨10£©
num
111
112
113
114
ÏÖÔÚÏëҪѭ»·table1ÖеÄËùÓÐÊý¾Ý£¬Ô­À´µÄ111Éú³É111001-111999²åÈëµ½table2ÖÐ
SQL code:
Select ltrim([num])+right(1000+number,3) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ