---
title: "shell执行mysql语句"
author: "crane.ding"
date: "2014-12-31T21:58:14Z"
tags: []
categories: ["数据库"]
slug: "shell-mysql"
draft: false
lastmod: "2014-12-31T21:58:14Z"
id: 2171620
url: "https://crane-ding.iteye.com/blog/2171620"
---

```shell

mysql <<EOF  
    select * from tableA a, tableB b 
    where a.id = b.id;
EOF

```