header-img
Info :
๋น„๊ต 2
list_img
MSSQL :: ํŠน์ • ์ปฌ๋Ÿผ์—์„œ ๋ฐ์ดํ„ฐ ๊ธธ์ด๊ฐ€ ๊ฐ€์žฅ ๊ธด ๋ฌธ์ž์—ด ROW ์ฐพ๊ธฐ
2024.01.11
How select * from ํ…Œ์ด๋ธ”๋ช… where len(์ปฌ๋Ÿผ๋ช…) = (select max(len(์ปฌ๋Ÿผ๋ช…)) from ํ…Œ์ด๋ธ”๋ช…); Result itemName ์ด ์ œ์ผ ๊ธด๊ฑธ ์ฐพ์•„๋‹ฌ๋ผ๊ณ  ํ–ˆ์Œ. ๊ฒ€์ƒ‰ํ•˜๋‹ˆ๊นŒ ์ „๋ถ€ ์˜ค๋ผํด ๊ธฐ์ค€ ๋ฌธ๋ฒ•๋งŒ ๋‚˜์™€์„œ ๋ฉ”๋ชจํ•ด๋‘ .
Java :: equals() ์™€ == ์˜ ์ฐจ์ด
2024.01.09
.equals()์™€ == ๋ชจ๋‘ ๋น„๊ต ์—ฐ์‚ฐ์ž์ด๋ฉฐ ๋‘˜ ๋‹ค ๋ชจ๋‘ ์–‘์ชฝ์— ์žˆ๋Š” ๋‚ด์šฉ์„ ๋น„๊ตํ•œ ๊ฐ’์„ boolean type์œผ๋กœ ๋ฐ˜ํ™˜ํ•œ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ java์—์„œ String์ฒ˜๋Ÿผ Class์˜ ๊ฐ’์„ ๋น„๊ตํ•  ๋•Œ์—๋Š” ๋ณดํ†ต equals() ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๋ฐ... equals์™€ ==๋Š” ๊ตฌ์กฐ์ ์œผ๋กœ ์–ด๋–ค ์ฐจ์ด์ ์„ ๊ฐ–๋Š”์ง€ ์•Œ์•„๋ณด๋„๋ก ํ•˜์ž. 1. ํ˜•ํƒœ์˜ ์ฐจ์ด .equals() ๋Š” ๋ฉ”์†Œ๋“œ ์ด๋ฉฐ == ๋Š” ๋น„๊ต๋ฅผ ์œ„ํ•œ ์—ฐ์‚ฐ์ž ์ด๋‹ค. 2. ์ฃผ์†Œ ๊ฐ’ ๋น„๊ต์™€ ์‹ค์ œ ๊ฐ’(๋‚ด์šฉ) ๋น„๊ต .equals() ๋ฉ”์†Œ๋“œ๋Š” ๋น„๊ตํ•˜๊ณ ์ž ํ•˜๋Š” ๋Œ€์ƒ์˜ ๋‚ด์šฉ ์ž์ฒด๋ฅผ ๋น„๊ตํ•˜์ง€๋งŒ, == ์—ฐ์‚ฐ์ž๋Š” ๋น„๊ตํ•˜๊ณ ์ž ํ•˜๋Š” ๋Œ€์ƒ์˜ ์ฃผ์†Œ ๊ฐ’์„ ๋น„๊ตํ•œ๋‹ค. int, float, double, byte ๋“ฑ์€ primitive type ์œผ๋กœ Call By Value(CBV) ์— ํ•ด๋‹น. Cla..