由买买提看人间百态

topics

全部话题 - 话题: null
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
a*****n
发帖数: 439
1
来自主题: Database版 - How can I NULL a date field in VC?
just want to null a date field, but always got "1969-12-31 18:00:00"
j*****n
发帖数: 1781
2
来自主题: Database版 - 怎样解决 Index for NULL value
NUll value = unknown, I don't think it is indexable.
B*****g
发帖数: 34098
3
来自主题: Database版 - 怎样解决 Index for NULL value
null肯定是不能index,但是现在要solution
B*****g
发帖数: 34098
4
来自主题: Database版 - not null in ms sql
SQL server null and '' are different
c*****d
发帖数: 6045
5
来自主题: Database版 - not null in ms sql
所有数据库都不认为null和空字符是一样的
B*****g
发帖数: 34098
6
来自主题: Database版 - not null in ms sql
Oracle
SELECT *
FROM DUAL
WHERE '' IS NULL
i*******d
发帖数: 81
7
google "not in null sql".
always tested in SQL exams and it is the #1 common SQL mistake.
https://www.simple-talk.com/sql/t-sql-programming/ten-common-sql-programming
-mistakes/

*
v***v
发帖数: 267
8
原来如此
谢谢各位
同事问起
花了我一下午才搞明白原来她那列里面有NULL
s**********o
发帖数: 14359
9
where email is not null and ltrim(rtrim(email)) <>''
原则上讲还要有and email like '%@%'
r*****l
发帖数: 2859
10
You can not make the ArrayList null in this example. While if you want to
just clear the ArrayList, this works:
public static void makeEmpty(java.util.ArrayList s) {
s.clear();
}
BTW: makenull is not a good name, make it makeNull, using the java
convention.
r*****s
发帖数: 985
11
This might be a very typical falut:
"The AXIS engine could not find a target service to invoke!
targetService is null."
The service is deployed to the web server and I actually
can see it from the list with wsdl showed correctly.
I don't expect the problem to be identified immediately. One
simpler question is:
where is the "targetService" defined?
Thanks in advance.
b******y
发帖数: 1684
12
来自主题: Java版 - return null or empty list/set/...
for functions like this:
List search(...) {
}
When the search can't get anything, would you return null, or empty list?
w*****d
发帖数: 2415
13
来自主题: Java版 - return null or empty list/set/...
An empty list is always better than null, always invoke the method and let
the object handle the behavior is always the correct way to do. You can
create a NullList class implementing List interface and assign several
default behaviors to it.
p**********g
发帖数: 9558
14
来自主题: Programming版 - dereference a NULL pointer in C
Linux的gdt表的第一项就是给这个准备的
从书里抄了这么一段
The first entry of the GDT is always set to 0. This ensures the logic
address with a null Segment Selector will be considered invalid, thus
causing a processor exception.
呵呵,要不怎么叫segmentation fault呢
K****n
发帖数: 5970
15
来自主题: Programming版 - 弱问c++里有没有NULL这个keyword?
只能给pointer?=NULL和=0一样?
P********e
发帖数: 2610
16
来自主题: Programming版 - 弱问c++里有没有NULL这个keyword?

大胆的用NULL,写程序的时候,意思清楚多了
不用担心,真这么严禁就去查什么默认include了这个

好滴谢谢大家(为啥我没google到)
结论就是用0就好了.
g*********s
发帖数: 1782
17
来自主题: Programming版 - stl iterator has "NULL" like const?
I have a the following data structure:
std::vector::iterator> X (x_sz);
Question: what is the initial value for X[0]..X[x_sz-1]? Do we have a "NULL"
iterator here?
p*u
发帖数: 2454
18
来自主题: Programming版 - stl iterator has "NULL" like const?

"NULL"
no. if u use it without setting a valid value it would be undefined
behavior. if u need an initial state u can use pointer to iterator, which
is more convoluted though.
g*********s
发帖数: 1782
19
来自主题: Programming版 - stl iterator has "NULL" like const?
So it seems I have to take the following weird detour?
std::list dummy_queue;
std::list::iterator dummy_it (dummy_queue.end());
X.resize(x_sz, dummy_it);
What if dummy_queue is changed later? That means the value in X is stale and potentially dangerous?
Any better solution? We don't have such headache if we just use self-defined doubly linked list and the initial value NULL for X elements. I expect a stl based solution can achieve similar behaviour.
p*u
发帖数: 2454
20
来自主题: Programming版 - stl iterator has "NULL" like const?

and potentially dangerous?
defined doubly linked list and the initial value NULL for X elements. I
expect a stl based solution can achieve similar behaviour.
first question is why u have to use X, not the list directly? do u want
random access dummy_queue? u can add a X::iterator member to dummy queue
elements; when u delete from dummy_queue, u need to delete the element in
X first through X::iterator( note delete in vector is not very efficient
). but it's convoluted, why do u have to use X?
X****r
发帖数: 3557
21
来自主题: Programming版 - printf("%s\n", NULL)的结果
printf和puts都是标准系统函数,你找个C标准就有详细定义。
不用琢磨用%s输出NULL的事,只要知道(从上面printf的文档里)不能这么用就行了。
软件工程的核心是开发效率,完全没有必要自己挖个坑去跳。

码吗
t****t
发帖数: 6806
22
来自主题: Programming版 - printf("%s\n", NULL)的结果
下一句就是原因("you can't pass NULL to %s"), 这也想不通吗?
l******d
发帖数: 530
23
来自主题: Programming版 - printf("%s\n", NULL)的结果
可是他没说为什么can't pass NULL to "%s\n", but can to "%s"呀
t****t
发帖数: 6806
24
来自主题: Programming版 - printf("%s\n", NULL)的结果
he meant you can't pass NULL to %s, no matter whether you have \n after it.
c*****a
发帖数: 808
25
来自主题: Programming版 - 什么错了, Invalid protocol: null
在用apache tomcat+jsp
ERROR: Unable to send email. Check Tomcat logs for details.
ERROR MESSAGE: Invalid protocol: null
public static void sendMail(String to, String from,
String subject, String body, boolean bodyIsHTML)
throws MessagingException
{
String mailhost = "smtp.gmail.com";
// 1 - get a mail session
Properties props = new Properties();
props.setProperty("mail.transport.protocol", "smtp");
props.setProperty("mail.host",... 阅读全帖
z********e
发帖数: 8818
26
来自主题: Programming版 - 求教:为啥总是null?
JavaScript菜鸟尝试写JS,程序请看:
http://js.do/hoccpan/35648
HTML这块:

JS这块:
function uploadlist() {
var selectstar=document.getElementById("selectstar");
if (!selectstar) {
wordlist.value="is null";
return;
}
。。。
为什么老是跳到 if 里面去呢??(也就是说,得不到sel... 阅读全帖
h**j
发帖数: 2033
27
来自主题: Programming版 - Cassandra returns null row keys?
cqlsh:testks> show version
[cqlsh 4.1.1 | Cassandra 2.0.6 | CQL spec 3.1.1 | Thrift protocol 19.39.0]
用了helenus和astyanax都一样,row key都是null,都指定了target version 1.2 和
CQL3.
[ ,
]
key作为一个column返回,by design?
W***o
发帖数: 6519
28
是说insert的时候ensure 还是 对已经存在的数据要ensure no null values in array?
L****8
发帖数: 3938
29
来自主题: Programming版 - C++要是有null object就好了
比如这种
std::vector A;
A[1] 就会抛异常 应该返回一个null object
p***o
发帖数: 1252
30
来自主题: Programming版 - C++要是有null object就好了
你定义好什么叫null object自己写一个这样的vector也花不了几分钟。
s******u
发帖数: 501
31
来自主题: Programming版 - C++要是有null object就好了
原因就是为了效率
事实上你说的这个连异常都不抛,因为不管是抛异常还是返回null都需要做一个范围的
判断,这就是额外的操作了。C++设计的原则之一就是尽量的高效,比如
initialization list就是为了省下一次变量的初始化,等等。如果想方便或者安全,
自己加代码
L****8
发帖数: 3938
32
来自主题: Programming版 - C++要是有null object就好了
来点干货 讲讲怎么设计null object
s******u
发帖数: 501
33
来自主题: Programming版 - C++要是有null object就好了
你拿到一个null object有毛用?
L****8
发帖数: 3938
34
来自主题: Programming版 - C++要是有null object就好了
还是不行 达不到 matlab 用[] 代表一切null数据 nullobject的效果
T**d
发帖数: 824
o*****e
发帖数: 23
36
【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: oldbare (oldbare), 信区: Programming
标 题: how to find IP of current server of UNIX by C language(NULL)
发信站: The unknown SPACE (Tue Dec 5 00:32:44 2000) WWW-POST
thanks a lot.
w*******o
发帖数: 32
37

grep ULL your_input | grep -v NULL
s******r
发帖数: 1524
38
来自主题: Statistics版 - Help! proc sql;cout not null value.
I am using proc sql to count distinct value. However it sounds proc sql
count null value as well. Anybody has the idea how to handle it or it is
only a bug of SAS?
Thanks,
p********a
发帖数: 5352
39
来自主题: Statistics版 - Help! proc sql;cout not null value.
It doesn't count null value
p********a
发帖数: 5352
40
来自主题: Statistics版 - Help! proc sql;cout not null value.
SAS/SQL NE SQL
SAS/SQL doesn't recognize NULL or '00'x
It is taken as a value
s*r
发帖数: 2757
41
来自主题: Statistics版 - Help! proc sql;cout not null value.
why not set null values as missing
m*****e
发帖数: 13
42
Can anybody help me?
If I turn off the "Firth" then the two null model fit statistics are the
same (-2LOG L). But my data has quasi-complete problem and "Firth" should
give me more reliable results.
Thanks!
j***3
发帖数: 142
43
I have a table like this:
color size fruit
red big apple
red small apple
green big apple
yellow small orange
red small orange
when I do:
select color, size, count(*) group by color, size;
I got:
red big 1
red small 2
green big 1
yellow small 1
but what I need is to also return the NULL group count such as:
red big 1
red small 2
green big 1
green small 0
yellow small 0
yellow small 1
how I can do the query in mysql?
thank you all.
F****n
发帖数: 3271
44
来自主题: Statistics版 - Null Hypothesis
You didn't formulate your problem right. There's no hypothesis to test at
all.

.
one
Null
we
F****n
发帖数: 3271
45
来自主题: Statistics版 - Null Hypothesis
No, none of the two your said are Null Hypothesis.
And what you described is still not a hypothesis testing problem.

brand
be
j*******y
发帖数: 58
46
来自主题: Statistics版 - Null Hypothesis
of course you can switch your null hypothesis with alternative, but won't
make any difference in the testing result.
For example if you test \mu<5 vs. \mu>5, and your test statistic is 2, then
the p value is the right hand side of the standard normal distribution which
is <0.05.
Then you switch you hypothesis to \mu>5 vs \mu<5, then your test statistic
is still 2, but your p value is the left hand side of the normal
distribution which is >0.05.
so no matter what hypothesis you choose, you won't ... 阅读全帖
on
发帖数: 199
47
来自主题: Statistics版 - Null Hypothesis
小东西,
thanks a lot for your example. It seems confirming my own example is a
reasonable one anyway :-)
If at least in some cases, one can flip null / alternative hypothesis, then
type I and type II errors would flip too correspondingly. That was actually
what I really wanted to get confirmation..

60
jelly
S*******1
发帖数: 251
48
来自主题: Statistics版 - How to deal with the NULL value?
when building a scorecard for credit/risk, I am puzzled on how to deal with
the null value. three choices:
1. set as a constant such as: 0
2. set as average
thanks!
a******n
发帖数: 11246
49
来自主题: Statistics版 - How to deal with the NULL value?
depends on the nature of the null value
PS: I counted twice but only saw 2 choices...-_-b

with
s******r
发帖数: 1524
50
来自主题: Statistics版 - How to deal with the NULL value?
I do not think there is a general answer for your question. Otherwise it is
not a question anymore.
you had better to do some research over null value to see whether they are
random distributed or some pattern.
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)