ÓÐÒ»¸ö±íµÄ×Ö¶ÎFileName±£´æÊý¾ÝÊÇ:010101 »ò 100010 »ò 111100
111111 ´ú±í == >> abcdef
create table a
(
id int not null,
FileName varchar(100) not null
)
insert into a values(1,'010101')
insert into a values(2,'100010 ')
insert into a values(3,'111100')
Æ©Èç:ÊäÈëÒ»¸ö FileNameµÄֵΪ ......
Àý:
insert into tablename values('select * from tablename')£»
ÎÒÏëÈÃselect * from tablenameÔÑùµÄ·Åµ½tablenameÖУ¬ÇëÎʸ÷룬sqlÎÄÔõô¸Ä°¡
select * from tablename ×÷Ϊ×Ö·û´®£¬²»ÈÃÆäÖ´ÐÐ!!
лл£¡£¡
insert into tablename select * from tablename
SQL code:
insert into tablename select 'sele ......
ѧÉúÐÅÏ¢±í£¬ÈçÏ£º
ID SEX SCORE YEAR
1 ÄÐ 88 2007
2 Å® 87 2008
3 ÄÐ 89 2006
4 Å® 99 2009
5 ÄÐ 54 2007
6 Å® 56 2008
ÒªÇóͳ¼Æ³öѧÉú×ÜÈËÊý£¬ÄÐÉú×ÜÈËÊý£¬Å®Éú×ÜÈËÊý
СµÜÊÇÔڸ㲻¶¨£¬Çó´ð°¸£¡Ð»Ð»
select count(*) from student;
select count ......
ÔÚÒ»¸öSQL SERVER 2005µÄÊý¾Ý¿âDANJUÄÚÓÐÈý¸ö±í£º
Containers£¨¼¯×°Ï䱨¼ìµ¥£©£¬Guangdong£¨¹ã¶«·¢Æ±£©£¬Shenzhen£¨ÉîÛÚ·¢Æ±£©¡£
Èý¸ö±íÖ®¼äûÓÐÁªÏµ£¬·Ö±ð°üº¬ÒÔÏÂ×ֶΣº
Containers£º±àºÅ¡¢±¨¼ìµ¥Î»¡¢±¨¼ìÈÕÆÚ¡¢½ø³ö¿ÚÀàÐÍ£¨½ø¿Ú¡¢³ö¿Ú£©¡£
Guangdong£º±àºÅ¡¢Ïú»õµ¥Î»¡¢¿ªÆ±ÈÕÆÚ¡¢ÒµÎñÀàÐÍ£¨±¾²¿¡¢ÍâÀ´£©¡£
Shenzhen ......
1¡£Êý¾Ý¿âÁ¬½ÓµÄʱºò£¬Èç¹ûÎÒÓÃÁ¬½Ó³Ø£¬°Ñ×î´óÁ¬½ÓÊýÉèÖÃΪ5£¬ÄÇôϵͳÔÚÎåÌìÒÔºóÊý¾Ý¿â¾Í»á±¨´í£¬Èç¹ûÎÒÉèÖÃΪ10£¬ÔòϵͳÔÚÊ®Ììºó¾Í³öÏÖ´íÎ󣬸оõºÜÆæ¹Ö¡£ËÄÜ°ïÎÒ½âÊÍÏÂÂð£¿Ð»Ð»..
2¡£³ÌÐò¿ªÊ¼ÔËÐÐÕý³££¬¼¸Ììºó¾Í»áÁ¬½ÓÊý¾Ý¿âʧ°Ü£¬´Ó5ÔÂ20ÈÕ²¼ÉϵijÌÐòÔËÐÐÕý³£µ½5ÔÂ27ºÅÁ¬½ÓÁíÒ»¸ö·þÎñÆ÷ÉϵÄÊý¾Ý¿âʱ¾ÍÁ¬½Óʧ°ÜÁË£¬ÓÐË ......
±íTAÖÐ:
ID StudentID¡¡Lession Scroe
1 0201 Êýѧ 98
2 0201 ÓïÎÄ 68
3 0201 ÎïÀí 100
1 0202 Êýѧ 58
2 0202 ÓïÎÄ 67
3 0202 ÎïÀí 85
1 0203 Êýѧ 85
2 0203 ÓïÎÄ 94
3 0203 ÎïÀí ......