在我的查询中,如何搜索与 'Geography' 相关的所有书籍?
In my query, How do I search for all books that are related to 'Geography'?
查询:给出所有地理相关书籍的 LL 格式标签“LL 格式”和 RR 格式标签“RR 格式”的出版日期。
关系表:
图书(Book_ID、Book_Title、Publication_Date、主题、出版商)
这是我尝试过的,对 LL 和 RR 格式知之甚少:
SELECT
to_date(book.publication_date, 'DD-Mon-RR') AS "RR",
to_date(book.publication_date, 'DD-Mon-YY') AS "LL"
FROM book
WHERE book.subject LIKE ('Geography')
我不知道你所说的 'LL'
格式是什么意思。 'RR'
格式是 Y2K
错误的解决方法。
您的问题与DATE
无关。
In my query, How do I search for all books that are related to 'Geography'?
因此,您希望 BOOKS
table 中属于 GEOGRAPHY
值的所有行作为 SUBJECT
列。
只需这样做 -
select * from BOOKS
where upper(subject) = 'GEOGRAPHY`
查询:给出所有地理相关书籍的 LL 格式标签“LL 格式”和 RR 格式标签“RR 格式”的出版日期。
关系表: 图书(Book_ID、Book_Title、Publication_Date、主题、出版商)
这是我尝试过的,对 LL 和 RR 格式知之甚少:
SELECT
to_date(book.publication_date, 'DD-Mon-RR') AS "RR",
to_date(book.publication_date, 'DD-Mon-YY') AS "LL"
FROM book
WHERE book.subject LIKE ('Geography')
我不知道你所说的 'LL'
格式是什么意思。 'RR'
格式是 Y2K
错误的解决方法。
您的问题与DATE
无关。
In my query, How do I search for all books that are related to 'Geography'?
因此,您希望 BOOKS
table 中属于 GEOGRAPHY
值的所有行作为 SUBJECT
列。
只需这样做 -
select * from BOOKS where upper(subject) = 'GEOGRAPHY`