Redian新闻
>
请推荐一本managerial accouting的书
avatar
请推荐一本managerial accouting的书# Business - 商学院
y*z
1
【 以下文字转载自 Immigration 讨论区 】
发信人: yjjz (tiger), 信区: Immigration
标 题: sealed的485体检信封里除了693表,还有什么
发信站: BBS 未名空间站 (Mon Aug 6 19:49:04 2012, 美东)
看instructions上说,信封里除了693表还包括可能的supporting documents. 想问的
是,需不需要提供国内体检小黄本的复印件,还有这里家庭医生出具的疫苗记录的复印
件?体检医生需要把这些也密封在一起吗?
谢了先。
avatar
s*l
2
最近诸事不顺,还生了病。
在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
生活啊,真美好;我爱你们每一个人。
我爱每一个人。也希望身边的人都爱我。
求祝福,并祝所有人健康快乐心想事成。
我要多往好的方面想。想着想着就成真的了,不是吗?
avatar
i*n
3
前面大家谈的这个昆曲京剧比较的话题,争来争去,我看来是不会有什么结果的。萝卜
白菜各有所爱,管它流不流行高不高雅,只要你自己喜欢能从中得到乐趣和一些感悟,
就好了。我现在问一个比较实际的京剧昆曲比较问题。
当然我对昆曲基本是不了解了。但我发现虽然昆曲演员,特别是青年演员比唱京剧的少
多了。但是就平均而言,我发现这个昆曲年轻演员里帅哥美女的比率比京剧的好像大不
少。我看的版上昆曲贴子里的年轻演员都长得气质不错,都是帅哥美女居多。是不是开
始挑选昆曲学生和演员的时候,对像貌气质身材的要求要比京剧的严格苛刻些啊?
avatar
i*r
5
SQL Server一个表要存50 million记录,field (A,B,C)是primary key,表里还有
D,E,F等field,初始化为NULL。A,B,C分别来自不同的三个表。
我用insert into...select创建这个表,很慢,要20分钟。如果用select into再建
primary key要快一些,还是慢。
有什么方法能快速建这个表?建Partitioned table有用么?
avatar
g*c
6
是怎么回事?谢谢
avatar
u*o
7
官方网里找不到我这个模样的QUICCAM
下了最新的LWS 11 64 bit 版 也不行
谁有什么好方法么?
avatar
s*e
8
选校 NY buffalo finance vs Cal state U Fullerton MSA
无奖,学费相当,听说前者稍好.
avatar
w*l
9
【 以下文字转载自 Accounting 讨论区 】
发信人: wsdoll (doll), 信区: Accounting
标 题: 请推荐一本managerial accouting的书
发信站: BBS 未名空间站 (Fri Oct 10 14:06:16 2008), 转信
闲来无事,想先看看accounting的书。
能推荐一本managerial accounting的书吗?
基础是懂一点点finacial accoutning. thanks!
avatar
s*t
10
对。
医生会问你要的。
avatar
l*o
11
bless

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
i*n
12
或者说是还有另外一个解释。可能开始挑选演员学生的时候,京剧昆曲也差不了太多。
但因为昆曲里才子佳人之类的戏比较多,所以在后天的锻炼学习过程中,由于经常练习表演这种才子佳人之的戏,慢慢的在形体气质上有了一些潜移默化的改变,所以美
女俊男就慢慢的多起来了。

【在 i******n 的大作中提到】
: 前面大家谈的这个昆曲京剧比较的话题,争来争去,我看来是不会有什么结果的。萝卜
: 白菜各有所爱,管它流不流行高不高雅,只要你自己喜欢能从中得到乐趣和一些感悟,
: 就好了。我现在问一个比较实际的京剧昆曲比较问题。
: 当然我对昆曲基本是不了解了。但我发现虽然昆曲演员,特别是青年演员比唱京剧的少
: 多了。但是就平均而言,我发现这个昆曲年轻演员里帅哥美女的比率比京剧的好像大不
: 少。我看的版上昆曲贴子里的年轻演员都长得气质不错,都是帅哥美女居多。是不是开
: 始挑选昆曲学生和演员的时候,对像貌气质身材的要求要比京剧的严格苛刻些啊?

avatar
s*z
13
http://extensions.joomla.org/extensions/ads-a-affiliates/classi
重装一次试试?

【在 n**********n 的大作中提到】
: 请问各位,joomla有没有免费分类广告模板,而且功能比较强的?谢谢鸟!
: 试装 listbingo 到 joomla 1.x,出现以下信息:
: The website encountered an error while retrieving http://localhost/joomla/administrator/index.php?option=com_installer&view=install. It may be down for maintenance or configured incorrectly.
: 不知道是什么意思。

avatar
p*l
14
据我的经验,大多数情况下,SELECT INTO貌似比INSERT要快一点,还有就是预先分配
足够的空间给这个表所在的文件组。

【在 i********r 的大作中提到】
: SQL Server一个表要存50 million记录,field (A,B,C)是primary key,表里还有
: D,E,F等field,初始化为NULL。A,B,C分别来自不同的三个表。
: 我用insert into...select创建这个表,很慢,要20分钟。如果用select into再建
: primary key要快一些,还是慢。
: 有什么方法能快速建这个表?建Partitioned table有用么?

avatar
a*e
15
装个QuickTime Alternative

【在 g*c 的大作中提到】
: 是怎么回事?谢谢
avatar
r*y
16
我的logitech USB耳机也没法使,只能放弃。据说五年前就有人说,愣是无为到现在。

【在 u**o 的大作中提到】
: 官方网里找不到我这个模样的QUICCAM
: 下了最新的LWS 11 64 bit 版 也不行
: 谁有什么好方法么?

avatar
J*u
17
我到觉得Cal state U Fullerton MSA比较好。。。。
他们的accounting还是很不错的
avatar
f*u
18
我的没有,但是医生要了小黄本的复印件和护照复印件。
avatar
b*k
19
bless
avatar
S*8
20
昆曲挑演员的确比较严格些,而且昆曲剧团也不像京剧那么多啊,本来就小众,成名比
较难,现在这种快餐文化的气氛之下,愿意学的年轻人就更少了,红楼里的那个小宝钗
李沁,很典型,没选秀之前有几个人知道她,或者看过她的表演啊。
avatar
y*9
21
1. Why 20 min is not good enough?If this is a one time job, I would put
more emphasis on correctness of implementation than speed
2. If speed is a concern, I am thinking of in SQL server, clustered index is
preferred to heap table. So PK is usually your clusterd index, so if you
can inset into the table with data ordered by (A, B, C), may be it can be
faster. i.e create the table structure with clustered index , then insert
with orderd records.
just my 2 cents.

【在 i********r 的大作中提到】
: SQL Server一个表要存50 million记录,field (A,B,C)是primary key,表里还有
: D,E,F等field,初始化为NULL。A,B,C分别来自不同的三个表。
: 我用insert into...select创建这个表,很慢,要20分钟。如果用select into再建
: primary key要快一些,还是慢。
: 有什么方法能快速建这个表?建Partitioned table有用么?

avatar
f*g
22
除了693表,似乎有一些检验结果的单子,我被抽了血检验的
avatar
k*u
23
bless!!

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
i*c
24
没觉得呀。张继青就长得一般,钱振荣也不符合英俊书生形象。可能京剧里小生太少吧
avatar
y*g
25
如果是你的数据文件已经分配好了,我就不知道还能如何提高速度,
除了先插数据,then build INDEX。
通常是很快了。 50 M 行在20分钟完成,不算赖!
avatar
J*i
26
祝福你,不管成不成真,人还是乐观点好

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
l*b
27
确实觉得昆曲里美女多。。早在我大部分精力还在京剧上的时候就发现这个问题了,跟
同学也探讨过,无果
avatar
s*o
28
SELECT INTO是最快的了,因为没有LOG,
如果速度还慢说明你的内存和IO有问题,考虑
上更多的内存和速度快的STORAGE
avatar
c*u
29
bless

最近诸事不顺,还生了病。
在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
生活啊,真美好;我爱你们每一个人。
我爱每一个人。也希望身边的人都爱我。
求祝福,并祝所有人健康快乐心想事成。
我要多往好的方面想。想着想着就成真的了,不是吗?

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
i*n
30
来看美女帅哥了。我最近觉得单雯越来越好看了,特别是扮上装以后从侧面看她低头的
样子。那个男的是不是你们以前说的什么施夏明了,的确长地俊俏,开始我还以为是女
的扮的。他们两是不是现在最漂亮的昆曲美女俊男了。还有其他的吗,麻烦也贴一下,
介绍一下。
avatar
i*r
31
SELECT INTO快多了,现在只要6,7分钟

【在 p********l 的大作中提到】
: 据我的经验,大多数情况下,SELECT INTO貌似比INSERT要快一点,还有就是预先分配
: 足够的空间给这个表所在的文件组。

avatar
P*e
32
bless

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
l*b
33
好像以前有帖子贴过帅哥吧
avatar
y*9
34
when you use 'select into', how do you populate null to the D, E, F etc
column?
when I use, for example, select ...,xxx as C, null as D into xxx from ...,
I find that D will have int data type. If I want D to be other data type,
how to do it?

【在 i********r 的大作中提到】
: SELECT INTO快多了,现在只要6,7分钟
avatar
d*e
35
bless

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
S*8
36
单雯的脸蛋可够饱满的,俺也觉得她上了妆很好看,只是施帅哥太瘦了,脸那么凹,相
形之下,觉得单妹妹就更加的丰润了。。。

【在 i******n 的大作中提到】
: 来看美女帅哥了。我最近觉得单雯越来越好看了,特别是扮上装以后从侧面看她低头的
: 样子。那个男的是不是你们以前说的什么施夏明了,的确长地俊俏,开始我还以为是女
: 的扮的。他们两是不是现在最漂亮的昆曲美女俊男了。还有其他的吗,麻烦也贴一下,
: 介绍一下。

avatar
B*g
37
不能把表建好后再加column吗?

.,
,

【在 y****9 的大作中提到】
: when you use 'select into', how do you populate null to the D, E, F etc
: column?
: when I use, for example, select ...,xxx as C, null as D into xxx from ...,
: I find that D will have int data type. If I want D to be other data type,
: how to do it?

avatar
v*f
38
祝福!
avatar
i*n
39
我比较喜欢那种瓜子脸,就是脸比较瘦比较小一点的。我觉得单雯的脸如果从正面看,
尤其是不上妆的时候,有点大,像你说的“可够饱满的”。所以侧面看,显得脸小,五
官精细些,更好看些。

【在 S********8 的大作中提到】
: 单雯的脸蛋可够饱满的,俺也觉得她上了妆很好看,只是施帅哥太瘦了,脸那么凹,相
: 形之下,觉得单妹妹就更加的丰润了。。。

avatar
y*9
40
I checked the BOL:
-- abount SELECT ... INTO clause
The amount of logging for SELECT...INTO depends on the recovery model in
effect for the database. Under the simple recovery model or bulk-logged
recovery model, bulk operations are minimally logged. With minimal logging,
using the SELECT… INTO statement can be more efficient than creating a
table and then populating the table with an INSERT statement.
---
But it seems that we can use minimal logging for isnert into select as well
as long as the following requirement is met:
--- from BOL http://technet.microsoft.com/en-us/library/ms174335(v=SQL.100).aspx
Using INSERT INTO…SELECT to Bulk Load Data with Minimal Logging
You can use INSERT INTO SELECT FROM
to efficiently transfer a large number of rows from one table, such as a
staging table, to another table with minimal logging. Minimal logging can
improve the performance of the statement and reduce the possibility of the
operation filling the available transaction log space during the transaction
.
Minimal logging for this statement has the following requirements:
The recovery model of the database is set to simple or bulk-logged.
The target table is an empty or nonempty heap.
The target table is not used in replication.
The TABLOCK hint is specified for the target table.
-------------------
So if we ensure minimal logging condition is met for both case, I don't
understand why SELECT ... INTO will be faster than INSERT INTO ... SELECT

【在 s**********o 的大作中提到】
: SELECT INTO是最快的了,因为没有LOG,
: 如果速度还慢说明你的内存和IO有问题,考虑
: 上更多的内存和速度快的STORAGE

avatar
p*y
41
bless
avatar
S*8
42
瓜子脸算是传统意义上的好看的脸,也不能太瘦,否则就太有棱角了,唱戏反正是剧场
文化,不怕镜头上看起来胖这件事;
不过这几年演艺圈尤其是新红楼推出了太多的“锥子脸”的女明星以后,俺就有点审美
疲劳了;现在很饭鹅蛋脸,就是红楼梦里说的“容长脸面”(想到了袭人),脸型的曲
线是圆润的,这样上妆贴片子以后脸也还是有余地的,就会好看,史依弘绝对符合这个
标准。

【在 i******n 的大作中提到】
: 我比较喜欢那种瓜子脸,就是脸比较瘦比较小一点的。我觉得单雯的脸如果从正面看,
: 尤其是不上妆的时候,有点大,像你说的“可够饱满的”。所以侧面看,显得脸小,五
: 官精细些,更好看些。

avatar
y*9
43
valid option, but I am not sure to initailize 50 million row with NULL don't
take siginifcant time. If I remeber correctly, in Oracle it will take time.
I will test if get chance

【在 B*****g 的大作中提到】
: 不能把表建好后再加column吗?
:
: .,
: ,

avatar
s*l
44
最近诸事不顺,还生了病。
在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
生活啊,真美好;我爱你们每一个人。
我爱每一个人。也希望身边的人都爱我。
求祝福,并祝所有人健康快乐心想事成。
我要多往好的方面想。想着想着就成真的了,不是吗?
avatar
i*n
45
脸瘦比较上镜头。脸长比脸短的总的来说好一点,但也不能太长,否则就是马脸了,比
如sex&city里sarah jessica parker 就有点像是马脸,仔细看不好看。贴几个搞笑她
的图,哈哈。

【在 S********8 的大作中提到】
: 瓜子脸算是传统意义上的好看的脸,也不能太瘦,否则就太有棱角了,唱戏反正是剧场
: 文化,不怕镜头上看起来胖这件事;
: 不过这几年演艺圈尤其是新红楼推出了太多的“锥子脸”的女明星以后,俺就有点审美
: 疲劳了;现在很饭鹅蛋脸,就是红楼梦里说的“容长脸面”(想到了袭人),脸型的曲
: 线是圆润的,这样上妆贴片子以后脸也还是有余地的,就会好看,史依弘绝对符合这个
: 标准。

avatar
y*9
46
I think I got wrong impression. Both in Oracle and SQL Server, when adding a
column to an existing table, if not specifying default value, it will be
NULL and it won't need to set the value row by row, so almost no time to
take.
So for OP, using 'select into' to create table with A, B, C column, then add
E, D, F is a valid option.

't
time.

【在 y****9 的大作中提到】
: valid option, but I am not sure to initailize 50 million row with NULL don't
: take siginifcant time. If I remeber correctly, in Oracle it will take time.
: I will test if get chance

avatar
l*o
47
bless

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
i*n
48
说到这个脸,顺便想起来男演员脸的要求,尤其是京剧里,对男演员的脸好像还是有些
要求和标准的。
比如演老生的,最好是脸比较清瘦的,瘦长一点的,像杨宝森,谭富英这样的脸就是比
较标准的老生脸。相反,脸长的圆的胖的,短一点的,扮上妆以后就不是很好看。马长
礼一直以来就是因为这个比较吃亏。说天津的杨乃彭也是这样,因为长的是圆脸,所以
扮像不太好看。但是你看王佩瑜脸小清瘦,扮像就不错。
听别人讲,和老生演员的要求不一样,花脸的就要求脸盘子大一点好,尤其是脸不能太
窄了。否则脸太窄小了,勾上脸后就不太好看,气势不行。

【在 i******n 的大作中提到】
: 脸瘦比较上镜头。脸长比脸短的总的来说好一点,但也不能太长,否则就是马脸了,比
: 如sex&city里sarah jessica parker 就有点像是马脸,仔细看不好看。贴几个搞笑她
: 的图,哈哈。

avatar
y*9
49
In terms of the transaction log generated, I did some test. My observation/
conclusion:
----
in terms of the amount of transaction log used, using "INSERT INTO ...
SELECT" with "TABLOCK" hint is essentially same as using "SELECT ... INTO"
regardless of recovery mode. Without the "TABLOCK" hint, regardless of the
recovery mode, using "INSERT INTO ... SELECT" will generate same amount of
transaction log and 4 times more than that in the case of FULL recovery mode
with the hint ( i.e. 125406 KB vs 32958 KB in my test case). People think "
INSERT INTO ... SELECT" is slow may be because they don't always remember to
add this hint when appropriate.
---
Detailed test see : http://oracle-study-notes.blogspot.com/2012/11/sql-server-insert-into-select-vs-select.html

,
well

【在 y****9 的大作中提到】
: I checked the BOL:
: -- abount SELECT ... INTO clause
: The amount of logging for SELECT...INTO depends on the recovery model in
: effect for the database. Under the simple recovery model or bulk-logged
: recovery model, bulk operations are minimally logged. With minimal logging,
: using the SELECT… INTO statement can be more efficient than creating a
: table and then populating the table with an INSERT statement.
: ---
: But it seems that we can use minimal logging for isnert into select as well
: as long as the following requirement is met:

avatar
b*k
50
bless
avatar
S*8
51
哈,马长礼的女婿杜镇杰也是小圆脸啊,每次看他上妆就想笑,虽然很喜欢的他的唱和
做派。

【在 i******n 的大作中提到】
: 说到这个脸,顺便想起来男演员脸的要求,尤其是京剧里,对男演员的脸好像还是有些
: 要求和标准的。
: 比如演老生的,最好是脸比较清瘦的,瘦长一点的,像杨宝森,谭富英这样的脸就是比
: 较标准的老生脸。相反,脸长的圆的胖的,短一点的,扮上妆以后就不是很好看。马长
: 礼一直以来就是因为这个比较吃亏。说天津的杨乃彭也是这样,因为长的是圆脸,所以
: 扮像不太好看。但是你看王佩瑜脸小清瘦,扮像就不错。
: 听别人讲,和老生演员的要求不一样,花脸的就要求脸盘子大一点好,尤其是脸不能太
: 窄了。否则脸太窄小了,勾上脸后就不太好看,气势不行。

avatar
i*r
52
SQL Server一个表要存50 million记录,field (A,B,C)是primary key,表里还有
D,E,F等field,初始化为NULL。A,B,C分别来自不同的三个表。
我用insert into...select创建这个表,很慢,要20分钟。如果用select into再建
primary key要快一些,还是慢。
有什么方法能快速建这个表?建Partitioned table有用么?
avatar
k*u
53
bless!!

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
p*l
54
据我的经验,大多数情况下,SELECT INTO貌似比INSERT要快一点,还有就是预先分配
足够的空间给这个表所在的文件组。

【在 i********r 的大作中提到】
: SQL Server一个表要存50 million记录,field (A,B,C)是primary key,表里还有
: D,E,F等field,初始化为NULL。A,B,C分别来自不同的三个表。
: 我用insert into...select创建这个表,很慢,要20分钟。如果用select into再建
: primary key要快一些,还是慢。
: 有什么方法能快速建这个表?建Partitioned table有用么?

avatar
J*i
55
祝福你,不管成不成真,人还是乐观点好

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
y*9
56
1. Why 20 min is not good enough?If this is a one time job, I would put
more emphasis on correctness of implementation than speed
2. If speed is a concern, I am thinking of in SQL server, clustered index is
preferred to heap table. So PK is usually your clusterd index, so if you
can inset into the table with data ordered by (A, B, C), may be it can be
faster. i.e create the table structure with clustered index , then insert
with orderd records.
just my 2 cents.

【在 i********r 的大作中提到】
: SQL Server一个表要存50 million记录,field (A,B,C)是primary key,表里还有
: D,E,F等field,初始化为NULL。A,B,C分别来自不同的三个表。
: 我用insert into...select创建这个表,很慢,要20分钟。如果用select into再建
: primary key要快一些,还是慢。
: 有什么方法能快速建这个表?建Partitioned table有用么?

avatar
c*u
57
bless

最近诸事不顺,还生了病。
在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
生活啊,真美好;我爱你们每一个人。
我爱每一个人。也希望身边的人都爱我。
求祝福,并祝所有人健康快乐心想事成。
我要多往好的方面想。想着想着就成真的了,不是吗?

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
y*g
58
如果是你的数据文件已经分配好了,我就不知道还能如何提高速度,
除了先插数据,then build INDEX。
通常是很快了。 50 M 行在20分钟完成,不算赖!
avatar
P*e
59
bless

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
s*o
60
SELECT INTO是最快的了,因为没有LOG,
如果速度还慢说明你的内存和IO有问题,考虑
上更多的内存和速度快的STORAGE
avatar
d*e
61
bless

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
i*r
62
SELECT INTO快多了,现在只要6,7分钟

【在 p********l 的大作中提到】
: 据我的经验,大多数情况下,SELECT INTO貌似比INSERT要快一点,还有就是预先分配
: 足够的空间给这个表所在的文件组。

avatar
v*f
63
祝福!
avatar
y*9
64
when you use 'select into', how do you populate null to the D, E, F etc
column?
when I use, for example, select ...,xxx as C, null as D into xxx from ...,
I find that D will have int data type. If I want D to be other data type,
how to do it?

【在 i********r 的大作中提到】
: SELECT INTO快多了,现在只要6,7分钟
avatar
p*y
65
bless
avatar
B*g
66
不能把表建好后再加column吗?

.,
,

【在 y****9 的大作中提到】
: when you use 'select into', how do you populate null to the D, E, F etc
: column?
: when I use, for example, select ...,xxx as C, null as D into xxx from ...,
: I find that D will have int data type. If I want D to be other data type,
: how to do it?

avatar
R*f
67
bless

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
y*9
68
I checked the BOL:
-- abount SELECT ... INTO clause
The amount of logging for SELECT...INTO depends on the recovery model in
effect for the database. Under the simple recovery model or bulk-logged
recovery model, bulk operations are minimally logged. With minimal logging,
using the SELECT… INTO statement can be more efficient than creating a
table and then populating the table with an INSERT statement.
---
But it seems that we can use minimal logging for isnert into select as well
as long as the following requirement is met:
--- from BOL http://technet.microsoft.com/en-us/library/ms174335(v=SQL.100).aspx
Using INSERT INTO…SELECT to Bulk Load Data with Minimal Logging
You can use INSERT INTO SELECT FROM
to efficiently transfer a large number of rows from one table, such as a
staging table, to another table with minimal logging. Minimal logging can
improve the performance of the statement and reduce the possibility of the
operation filling the available transaction log space during the transaction
.
Minimal logging for this statement has the following requirements:
The recovery model of the database is set to simple or bulk-logged.
The target table is an empty or nonempty heap.
The target table is not used in replication.
The TABLOCK hint is specified for the target table.
-------------------
So if we ensure minimal logging condition is met for both case, I don't
understand why SELECT ... INTO will be faster than INSERT INTO ... SELECT

【在 s**********o 的大作中提到】
: SELECT INTO是最快的了,因为没有LOG,
: 如果速度还慢说明你的内存和IO有问题,考虑
: 上更多的内存和速度快的STORAGE

avatar
s*k
69
bless
avatar
y*9
70
valid option, but I am not sure to initailize 50 million row with NULL don't
take siginifcant time. If I remeber correctly, in Oracle it will take time.
I will test if get chance

【在 B*****g 的大作中提到】
: 不能把表建好后再加column吗?
:
: .,
: ,

avatar
R*f
71
bless

【在 s*******l 的大作中提到】
: 最近诸事不顺,还生了病。
: 在医院里呆了两周多以后,重新回到人间,在车上看着街上的行人,心里默默的呼喊:
: 生活啊,真美好;我爱你们每一个人。
: 我爱每一个人。也希望身边的人都爱我。
: 求祝福,并祝所有人健康快乐心想事成。
: 我要多往好的方面想。想着想着就成真的了,不是吗?

avatar
y*9
72
I think I got wrong impression. Both in Oracle and SQL Server, when adding a
column to an existing table, if not specifying default value, it will be
NULL and it won't need to set the value row by row, so almost no time to
take.
So for OP, using 'select into' to create table with A, B, C column, then add
E, D, F is a valid option.

't
time.

【在 y****9 的大作中提到】
: valid option, but I am not sure to initailize 50 million row with NULL don't
: take siginifcant time. If I remeber correctly, in Oracle it will take time.
: I will test if get chance

avatar
s*k
73
bless
avatar
y*9
74
In terms of the transaction log generated, I did some test. My observation/
conclusion:
----
in terms of the amount of transaction log used, using "INSERT INTO ...
SELECT" with "TABLOCK" hint is essentially same as using "SELECT ... INTO"
regardless of recovery mode. Without the "TABLOCK" hint, regardless of the
recovery mode, using "INSERT INTO ... SELECT" will generate same amount of
transaction log and 4 times more than that in the case of FULL recovery mode
with the hint ( i.e. 125406 KB vs 32958 KB in my test case). People think "
INSERT INTO ... SELECT" is slow may be because they don't always remember to
add this hint when appropriate.
---
Detailed test see : http://oracle-study-notes.blogspot.com/2012/11/sql-server-insert-into-select-vs-select.html

,
well

【在 y****9 的大作中提到】
: I checked the BOL:
: -- abount SELECT ... INTO clause
: The amount of logging for SELECT...INTO depends on the recovery model in
: effect for the database. Under the simple recovery model or bulk-logged
: recovery model, bulk operations are minimally logged. With minimal logging,
: using the SELECT… INTO statement can be more efficient than creating a
: table and then populating the table with an INSERT statement.
: ---
: But it seems that we can use minimal logging for isnert into select as well
: as long as the following requirement is met:

avatar
m*1
75
bless
avatar
i*r
76
select CAST(NULL AS yourtype) as D

.,
,

【在 y****9 的大作中提到】
: when you use 'select into', how do you populate null to the D, E, F etc
: column?
: when I use, for example, select ...,xxx as C, null as D into xxx from ...,
: I find that D will have int data type. If I want D to be other data type,
: how to do it?

avatar
w*8
77
bless!
avatar
f*s
78
最近我也是不太顺利,希望你能好起来
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。