About 672,000 results
Open links in new tab
  1. How to create a table in a particular database? - Stack Overflow

    May 29, 2017 · 0 Assuming that you have more than one database, in mysql, you can do SHOW DATABASES to view them all and then USE with your db name to make it the current one. …

  2. Check if table exists and if it doesn't exist, create it in SQL Server ...

    Aug 23, 2019 · I am writing a Stored procedure in SQL Server 2008. I need to check if a table exists in the database. If it doesn't then I need to create it. How do I do this?

  3. SQL Server tables: what is the difference between @, # and

    Feb 8, 2010 · 8 CREATE TABLE #t Creates a table that is only visible on and during that CONNECTION the same user who creates another connection will not be able to see table #t …

  4. Create SQL table with the data from another table

    Aug 7, 2010 · How do I create a table using data which is already present in another table (copy of table)?

  5. How to generate the "create table" sql statement for an existing …

    Oct 2, 2019 · I have created a table in postgreSQL. I want to look at the SQL statement used to create the table but cannot figure it out. How do I get the create table SQL statement for an …

  6. What is the use of the square brackets [] in sql statements?

    Whatever word becomes colourful in your SQL management studio, should be surrounded by brackets if you want to use them as column / table / sp / etc. names. In MySQL angled single …

  7. SQL: how to specify a date format on creating a table and fill it

    Dec 22, 2016 · SQL: how to specify a date format on creating a table and fill it Asked 7 years, 7 months ago Modified 5 years ago Viewed 210k times

  8. sql - How to create Temp table with SELECT - Stack Overflow

    Jul 15, 2012 · Note also that any temporary table created inside a stored procedure is automatically dropped when the stored procedure finishes executing. If stored procedure A …

  9. sql - Error 1046 No database selected, how to resolve? - Stack …

    Then I choose the database that i have just created, and open a .sql file and run, with both create database and use database statements, it complains "fail no database selected" again. reopen …

  10. sql server - How to automatically generate unique id in SQL like ...

    Dec 19, 2013 · an ID INT IDENTITY(1,1) column to get SQL Server to handle the automatic increment of your numeric value a computed, persisted column to convert that numeric value …