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

SqlserverÖеıí¸üв»ÁË

SqlserverÖеıí¸üв»ÁË£¬ÎÒÓÐÒ»¸öthreads±í£¬
ÀïÃæÓлظ´Êý£¬±êÌâʲôµÄÔÙ³ÌÐòÖÐ×ö£¬¸üÐÂ
²»ÁËÊý¾Ý¿â£¬ÔÚÊý¾Ý¿âÈËΪµÄ¿ÉÒÔ¸üС£
²»ÖªµÀʲôԭÒò£¬¸ú±íÖ®¼äµÄ¹ØÏµÓйØÂð£¿
´óÏÀÃÇ£¬°ï°ïæ°¡£¿£¿£¿
¸Ð¾õ³ÌÐòû´íµÄ¡£

public int modifyThreads(Threads threads) {
int num=0;
String sql="update threads set fid=?,author=?,authorid=?,subject=?,dateline=?,lastPost=?,lastPoster=?,views=?,replies=?,displayOrder=?,highLight=?,digest=?,attachment=?,moderated=? where tid="+threads.getTid();
this.openConn();
try {

pstmt=conn.prepareStatement(sql);
pstmt.setInt(1,threads.getFid());
pstmt.setString(2, threads.getAuthor());
pstmt.setInt(3, threads.getAuthorid());
pstmt.setString(4,threads.getSubject());
System.out.println(threads.getSubject());
pstmt.setString(5,threads.getDateline().toString());
pstmt.setString(6,threads.getLastPost().toString());
pstmt.setString(7,threads.getLastPoster());
pstmt.setInt(8,threads.getViews());
pstmt.setInt(9,threads.getReplies());
pstmt.setByte(10,threads.getDisplayOrder());
pstmt.setByte(11,threads.getHighLight());
pstmt.setByte(12,threads.getDigest());
pstmt.setByte(13,threads.getAttachment());
pstmt.setByte(14,threads.getModerated());
num=pstmt.executeUpdate();
} catch (SQLException e) {


Ïà¹ØÎÊ´ð£º

sqlserver Êý¾ÝºÏ²¢ÎÊÌâ

ÏÈÓÉÈçÏÂsqlÓï¾ä
select  A,B,C from table1
union
select  A,B,C from table2
order by A, C asc
µÃµ½½á¹ûÈçÏ£º
  A        B      &nbs ......

sqlserverÖУ¬Óô洢¹ý³Ì·ÖÒ³

´ó¼ÒÓÐûÓÐ ´æ´¢¹ý³Ì·ÖÒ³µÄÀý×Ó£¬¹²Ïíһϣ¬Ð»Ð»£¡£¡£¡
http://wyf.javaeye.com/blog/462396

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO


/*--ʵÏÖ·ÖÒ³µÄͨÓô洢¹ý³Ì

  ......

Ôõô»ñÈ¡sqlserver×îºó²åÈëÐÐÄÚµÄ×ֶΣ¿

Ö÷¼üÊÇuniqueidentifierÀàÐÍ£¬Ã»ÓÐ×ÔÔö×ֶΡ£¡£

ÕâÑùÓ¦¸ÃÔõô»ñÈ¡£¿


L@_@K
SQL code:
SELECT ISNULL(SCOPE_IDENTITY(), -1) AS [SCOPE_IDENTITY]

°´Ê±¼äÅÅÐò
»ò
guid²»Òª×Ô¶¯Éú³É
......

asp SqlServerÎÞ·¨É¾³ý

conn.execute "delete from PSTC_About where id in ("&SelectID&")"
ÆäÖÐSelectIDÊÇ´«µÝ¹ýÀ´µÄ¼Ç¼ID£¬Êµ¼ÊÐγɵÄÓï¾äÈç conn.execute "delete from PSTC_About where id in ( ......

ÈçºÎ½«accessÊý¾Ý¿âÎļþµ¼Èësqlserver2005

ÈçºÎ½«accessÊý¾Ý¿âÎļþµ¼Èësqlserver2005 
µ¼Èëµ¼³ö¼´¿É

ѧϰ  ÎÒÒ²ÊÇÐÂÊÖ

Óõ¼Èëµ¼³ö ×ֶμǼ »á¶ªÊ§Âð

²»»á

ÎÒ½«accessµ¼ÈësqlserverÁË µ«²»ÖªµÀÊý¾Ý¿â·ÅÔÚÄÄ

ÓÃSQL SERVER ÖÐ×Ô´øµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ