exam questions

Exam 1z0-883 All Questions

View all questions & answers for the 1z0-883 exam

Exam 1z0-883 topic 1 question 8 discussion

Actual exam question from Oracle's 1z0-883
Question #: 8
Topic #: 1
[All 1z0-883 Questions]

Which query would you use to find connections that are in the same state for longer than 180 seconds?

  • A. SHOW FULL PROCESSLIST WHEER Time > 180;
  • B. SELECT * FROM INFORMATION_SCHEMA.EVENTS SHERE STARTS < (DATE_SUB (NOW ( ), INTERVAL 180 SECOND) );
  • C. SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE STATE < (DATE_SUB (NOW ( ), INTERVAL 180 SECOND) );
  • D. SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE TIME > 180;
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
The show processlist cannot use where clause.
mysql> show full processlist where time>0;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where time>0' at line 1

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...