Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Dev sOs Net

Dev sOs Net Logo Dev sOs Net Logo

Dev sOs Net Navigation

  • Home
  • About Us
  • Dev Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • About Us
  • Dev Blog
  • Contact Us
Home/ Questions/Q 109
Answered

Dev sOs Net Latest Questions

Dev
  • 4
  • 4
DevTeacher
Asked: April 18, 20182018-04-18T21:45:02+00:00 2018-04-18T21:45:02+00:00In: 3. Windows Hosting, 3.3. SQL Nutshell, Knowledge Base

SQL Cookbook – Recipe 1.1 Retrieving All Rows and Columns from a Table

  • 4
  • 4

Problem

You have a table and want to see all of the data in it?

7. SQL AuthorAnthony Molinaro
  • 1 1 Answer
  • 35 Views
  • 1 Follower
  • 3
Share
  • Facebook
  • Report
Leave an answer

Leave an answer
Cancel reply

Browse


1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Anthony Molinaro
    Best Answer
    Anthony Molinaro
    2018-04-18T21:48:58+00:00Added an answer on April 18, 2018 at 9:48 pm
    This answer was edited.

    Solution

    Use the special “*” character and issue a SELECT against the table:
    1 select *
    2 from emp

    Discussion

    The character “*” has special meaning in SQL. Using it will return
    every column for the table specified. Since there is no WHERE clause
    specified, every row will be returned as well. The alternative would be
    to list each column individually:
    select
    empno,ename,job,sal,mgr,hiredate,comm,deptno
    from emp
    In ad hoc queries that you execute interactively, it’s easier to use
    SELECT *. However, when writing program code it’s better to specify
    each column individually. The performance will be the same, but by
    being explicit you will always know what columns you are returning
    from the query. Likewise, such queries are easier to understand by
    people other than yourself (who may or may not know all the
    columns in the tables in the query).

      • 1
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 10
  • Answers 10
  • Best Answers 7
  • User 1
  • Popular
  • Answers
  • Dev

    Apache Cookbook - Recipe 1.1 Installing from Red Hat Linux’s ...

    • 1 Answer
  • Dev

    Linux Cookbook - Recipe 1.1 Introduction

    • 1 Answer
  • Dev

    PHP Cookbook - Recipe 1.1 Introduction

    • 1 Answer
  • Martin Hope
    Martin Hope added an answer They might be as confused as to why you keep… April 19, 2018 at 2:07 am
  • Marko Smith
    Marko Smith added an answer I have never heard a British person EVER call a… April 19, 2018 at 2:07 am
  • Barry Carter
    Barry Carter added an answer Calling a bread roll a “biscuit” really takes the biscuit.… April 19, 2018 at 2:07 am

Related Questions

  • Visual Basic Cookbook - Recipe 1.1 Creating a Windows Forms ...

    • 1 Answer
  • C# Cookbook - Recipe 1.1 Determining Approximate Equality Between a ...

    • 1 Answer
  • ASP.NET Cookbook - Recipe 1.1 Selecting the Right Tabular Control

    • 1 Answer
  • Windows Server Cookbook - Recipe 1.1 Introduction

    • 1 Answer
  • WordPress Manual - Recipe 1.1 How WordPress Works

    • 1 Answer

Top Members

Dev

Dev

  • 10 Questions
  • 82 Points
Teacher

Trending Tags

1. Linux Author 4. WordPress Author 5. Windows Server Author 6. ASP.NET Author 7. SQL Author Adam Trachtenberg Anthony Molinaro Carla Schroder David Sklar Geoffrey T. LeBlond Jay Hilyard John Clark Craig Ken Coar Matthew MacDonald Michael A. Kittel Paul DuBois Rich Bowen Robbie Allen Stephen Teilhet Tim Patrick

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Find Solutions

Footer

Dev sOs Net

Dev sOs Net

Develop
Share Online Solution Network

sOs Net

  • About Us
  • About Team

Legal Agreement

  • Privacy Policy
  • Terms and Conditions

User Support

  • Knowledge Base
  • Contact Us

Follow Us

Copyright © Dev sOs Net. All rights reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.