Char를 사용하여 숫자 값과 문자 값 비교안녕,
숫자 값과 문자 값을 비교할 수 있습니까?
두 열(동일하거나 다른 값)을 비교하고 싶습니다. 한 열에는 숫자 날짜가 있고 다른 열에는 문자 날짜가 있습니다. 일부만 비교해야 하므로 하위 문자열을 사용하고 싶습니다. 아래 스크립트가 실행되지만 모두 다르게 나타나므로 올바른 결과를 얻지 못합니다(사실이 아님). Char를 잘못 사용하고 있습니까?
If( Substr( Char( :Name( "Date/Time of Specimen Collection" ) ), 1, 10 ) == Substr( :Name( "Start Date/Time of Visit" ), 1, 10 ),
"identical",
"different"
)
"Date/Time of Specimen Collection" 형식을 변경할 수 있다는 것을 알고 있지만 내 스크립트의 다른 부분을 복잡하게 만들 것이므로 그렇게 하지 않는 것이 좋습니다.
미리 감사드립니다
스크립팅Re: Char를 사용하여 숫자와 문자 값 비교무슨 일이 일어나고 있는지 이해하려면
Char( :Name( "Date/Time of Specimen Collection" ) )
공식으로. 모든 값과 구분 문자를 올바르게 가져오는 데 필요한 정확한 날짜-시간 형식을 지정하려면 format(...) 함수(char(...) 대신)를 사용해야 할 것입니다. 열 속성 대화 상자를 사용하고 형식...날짜 섹션을 보면 사용 가능한 형식 이름을 볼 수 있습니다.
Re: Char를 사용하여 숫자와 문자 값 비교너의 의도를 알 겠어. 그래도 형식을 사용하여 제대로 얻을 수 없는 것 같습니다.
어쨌든 추가 열을 만들지 않고 이 작업을 수행할 수 있습니까?
Re: Char를 사용하여 숫자와 문자 값 비교예. 문자 날짜의 형식은 무엇입니까?
Re: Char를 사용하여 숫자와 문자 값 비교첨부된 테이블 캡처에서 "Date/Time of Specimen Collection" 열(숫자, yyy-mm-ddThh:mm:ss)의 날짜 부분을 "Start Date/Time of Visit" 열(문자 , 공칭)
jmp가 날짜 부분에 하위 문자열을 사용할 수 있도록 숫자 값을 문자(물론 날짜 형식)로 볼 수 있는 기능이 있습니까?
Re: Char를 사용하여 숫자와 문자 값 비교
Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.format() 함수 사용; 숫자 날짜는 2월 7일의 연월일입니다. 문자 형식은 일/월/년입니다.
Re: Char를 사용하여 숫자와 문자 값 비교다음 형식이 필요할 수 있습니다.
the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.T 형식은 ISO 표준입니다.
Re: Char를 사용하여 숫자와 문자 값 비교또는 다음과 같이 할 수도 있습니다.
You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.yyy-mm-dd 형식에는 substr이 필요하지 않습니다. 이미 필요한 10자만 반환합니다.
Re: Char를 사용하여 숫자와 문자 값 비교정말 감사합니다 - 한 번 해보겠습니다 