avatar
为什么结果是3?# Java - 爪哇娇娃
h*g
1
不是admin user, 要看一个table的schema (所有column的名字),该怎么办?
avatar
w*n
2
double[] times = {3.56, 3.9, 2.6, 4.5, 2.4, 5.2};
double[] bestTimes = new double[4];
Arrays.sort(times);
bestTimes = Arrays.copyOfRange(times, 1, 4);
(Refer to code example 11-1.) What is the length of the bestTimes array?
Answer
a.3
b.6
c.5
d. 4
avatar
g*y
3
for Oracle, check dba_tab_columns

【在 h*****g 的大作中提到】
: 不是admin user, 要看一个table的schema (所有column的名字),该怎么办?
avatar
h*k
4
这个难道不是看api嘛
to index is exclusive

【在 w*********n 的大作中提到】
: double[] times = {3.56, 3.9, 2.6, 4.5, 2.4, 5.2};
: double[] bestTimes = new double[4];
: Arrays.sort(times);
: bestTimes = Arrays.copyOfRange(times, 1, 4);
: (Refer to code example 11-1.) What is the length of the bestTimes array?
: Answer
: a.3
: b.6
: c.5
: d. 4

avatar
B*g
5
kick, lz is not admin

【在 g*****y 的大作中提到】
: for Oracle, check dba_tab_columns
avatar
z*e
6
[1,4)
avatar
g*y
7
hmm...use user_tab_columns instead...

【在 B*****g 的大作中提到】
: kick, lz is not admin
avatar
w*n
8
多谢回复。请问我的理解对吗?
1。double[] bestTimes = new double[4];
//说明 bestTime 里面有4个元素是把?
2。Arrays.sort(times);
//把time里面的元素排序对吗?
3。bestTimes = Arrays.copyOfRange(times, 1, 4);
//把bestTimes元素1取到元素4复制给times对吗?
这样从元素1到元素4不是4个元素吗怎么是3呢?

【在 w*********n 的大作中提到】
: double[] times = {3.56, 3.9, 2.6, 4.5, 2.4, 5.2};
: double[] bestTimes = new double[4];
: Arrays.sort(times);
: bestTimes = Arrays.copyOfRange(times, 1, 4);
: (Refer to code example 11-1.) What is the length of the bestTimes array?
: Answer
: a.3
: b.6
: c.5
: d. 4

avatar
j*n
9
sp_helptext for MS
avatar
z*e
10
你找本java教材好好看看吧
从头看到尾,你问的问题java教材上都有
学习语言不是考试,背题没有太多意义
就算给了你答案,换个题目你还是不会做
avatar
M*g
11
sql server:
select name
from syscolumns
where OBJECT_NAME(id)= TableName
不过我是admin user.

【在 h*****g 的大作中提到】
: 不是admin user, 要看一个table的schema (所有column的名字),该怎么办?
avatar
r*r
12
double[] bestTimes = new double[4];
...
bestTimes = Arrays.copyOfRange(times, 1, 4);
The above 2 bestTimes's refer to 2 different arrays, and the memory referred
by the former will be GCed sooner or later.
Correct me if I am wrong.
avatar
a*b
13
use yourdatabase
go
select name from sys.columns c
join sys.tables t
on t.object_id =t.object_id
如果的permission足够的话,在MS SQL 上run上面的query
avatar
P*l
14
把程序抄下来。
一步步debug下就明白了
avatar
h*c
15
select column_name from user_tab_columns where table_name = 表名
oracle是这样的
avatar
n*t
16
这个跟GC 没关系.
想想bestTimes 里存的是什么东西, '='是一个赋值操作.
avatar
w*e
17
好象大家对INFORMATION_SCHEMA不关心呀
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。