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

sql °ëºÏ²¢

sqlÓï¾äÔõô°Ñ
a񡜧
100 Сºì 12
102 СÃ÷ 15
b񡜧
100 Сºì 13
103 С°× 23
±ä³É

100 Сºì 12 13
102 СÃ÷ 15 null
103 С°× null 23

ÄØ£¿£¿
full join

SQL code:
full join


SQL code:
select isnull(a.col1,b.col1),isnull(a.col2,b.col2),
a.col3,b.col3
from tb1 as a
full join tb2 as b
on a.col1=b.col1 and a.col2=b.col2


SQL code:
select isnull(a.col1,b.col1)col1,
isnull(a.col2,b.col2)col2,
a.col3 col3,
b.col3 col4
from ta a full join tb b
on a.col1=b.col1


SQL code:
if object_id('[ta]') is not null drop table [ta]
go
create table [ta] (col1 int,col2 nvarchar(4),col3 int)
insert into [ta]
select 100,N'Сºì',12 union all
select 102,N'СÃ÷',15
if object_id('[tb]') is not null drop table [tb]
go
create table [tb] (col1 nvarchar(6),col2 nvarchar(4),col3 int)
insert into [tb]
select '100',N'Сºì',13 union all
select '103',N'С°×',23
select isnull(a.


Ïà¹ØÎÊ´ð£º

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

Çë½ÌsqlÓï¾ä¡£ - Oracle / ¿ª·¢

ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
  ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......

ÇóSQLÓï¾ä£¡£¡£¡ - MS-SQL Server / Ó¦ÓÃʵÀý

clientserial devseral chunnelnum devdata5
CZ0001 308001 5000 11.1
CZ0001 308001 5001 11.2
CZ0001 308001 5002 11.3
CZ0001 3080 ......

sql server - Java / Eclipse

Êý¾Ý¿âÒªÔõôѧ²Å²»»áÏԵóéÏó°¡£¿
Õâ¾ÍÒª¿´ÄãÊʺÏʲô·½·¨ÁË£¬Õâ¾ßÌå²»ºÃ˵µÄ.....

ÔõôÁË£¬ÄѵÀ´ó¼Ò¶¼²»»á£¬»¹ÊÇÕæµÄÌ«³éÏó´ó¼Ò²»ÖªµÀÔõô˵°¡

½áºÏÄã²Ù×÷Êý¾Ý¿âµÄÌå»áºÍÀí½â£¬Ó¦¸ÃЧ¹û»á¸üºÃ¡£·ñÔò£¬Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ