楼主: ciciwanghk
2086 1

[原创博文] where name =: ‘T’什么意思 [推广有奖]

  • 0关注
  • 0粉丝

博士生

13%

还不是VIP/贵宾

-

威望
0
论坛币
75 个
通用积分
1.0000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
2914 点
帖子
97
精华
0
在线时间
289 小时
注册时间
2009-7-15
最后登录
2022-4-30

楼主
ciciwanghk 发表于 2010-12-24 15:04:39 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
data exam;
  input name $ class $ score ;
  if name = ‘Tim’ or name = ‘Sally’;
  cards;
Tim math 9
Tim history 8  
Tim science 7
Sally math 10
Sally science 7
Sally history 10
John math 8
John history 8
John science 9
;
run;

data student4;
  set exam;
  where name =: ‘T’ or name contains ‘ally’;  
run;
等号后面冒号是什么忆昔?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Where HERE name whe Science history science where

沙发
viterbi 发表于 2010-12-24 15:23:04
T开头吧,SAS help里如下解释
The colon causes SAS to compare the same number of characters in the shorter value and the longer value. In this case, the shorter string contains one character; therefore, SAS tests only the first character from the longer value. All names beginning with a T make the comparison true.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-25 18:55