答案 0 :(得分:0)
您无法在Oracle中运行SHOW TABLES
之类的MySQL命令。
SHOW
是一个SQL * Plus命令。它可以让你看到你的会话设置。
SHOW ALL
或SHOW PAGESIZE
您可以创建一个名为SHOW
或SHOWTABLE
的{{3}},您可以激活该 select table_name from user_tables order by 1;
来为您编写SQL,例如
socket.on('studentJoinRoom', function answerStudentJoin(msg) {
var userName = msg.userName;
var roomId = msg.roomId;
console.log('user ' + userName + ' joining room ' + roomId);
socket.userName = userName;
if (socket.room !== roomId) { // only join once
socket.room = roomId;
testRooms.joinClient(userName, roomId);
socket.join(roomId); // join socket room
socket.emit('studentJoinConfirmed');
socket.broadcast.to(testRooms.getTeacherId(roomId)).emit('newStudentJoined', {student: userName});
}
console.dir(testRooms.getRooms());
});
socket.on('disconnect', function(socket) {
console.log(socket.userName + ' has left the room ' + socket.room);
})