---
title: "如何查询用户下面的所有表名"
author: "primitive123"
date: "2014-03-19T11:49:25Z"
tags: []
categories: ["非技术"]
slug: "untitled"
draft: false
lastmod: "2014-03-19T11:49:25Z"
id: 2033434
url: "https://primitive123.iteye.com/blog/2033434"
---

第一种，查询当前用户的所有表名称，直接执行下面sql获得
select * from USER_TABLES

第二种，查询其他用户的所有表名称，直接执行下面sql获取
select * from sys.ALL_TABLES  where OWNER='BCP'
select * from dba_tables where owner='BCP'