title: Creating a SQL table variable in a stored procedure
body: <p>I want to create SQL variable table in stored procedure which include this;</p>
  
  <pre><code>Select a,b,c,d from **@tablename** where a=1 and c=0
  </code></pre>
  
  <p>How can do this with sp when creating sp?</p>