CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript, Python code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Thu Mar 28, 2024 7:53 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: How to generate a new table in SQL
PostPosted: Sat May 18, 2019 9:27 am 
Offline

Joined: Sat May 18, 2019 9:00 am
Posts: 3
I need to create a view vCustomerOrders that displays the customer's name, order number, and order date.

What is the best route for this?


Top
 Profile  
 
 Post subject: Re: How to generate a new table in SQL
PostPosted: Fri May 31, 2019 6:54 am 
Offline

Joined: Thu Jul 17, 2008 3:07 pm
Posts: 75
the beast way is to learn some SQL syntax, some DBMS theory and practice and a bit of SQL Server Architecture. In other words: RTFM, noob.


Top
 Profile  
 
 Post subject: Re: How to generate a new table in SQL
PostPosted: Sat Aug 03, 2019 5:50 am 
Offline

Joined: Sat Aug 03, 2019 5:39 am
Posts: 1
SQL CREATE TABLE statement is used to create table in a database.

If you want to create a table, you should name the table and define its column and each column's data type.

Simple syntax to create table-

create table "tablename"
("column1" "data type",
"column2" "data type",
"column3" "data type",
...
"columnN" "data type");


Top
 Profile  
 
 Post subject: Re: How to generate a new table in SQL
PostPosted: Thu Jun 17, 2021 8:40 am 
Offline

Joined: Thu Jun 17, 2021 8:37 am
Posts: 1
If you want to create a table, you should name the table and define its column and each column's data type.


Top
 Profile  
 
 Post subject: Re: How to generate a new table in SQL
PostPosted: Tue Jun 29, 2021 8:01 pm 
Offline

Joined: Tue Jun 29, 2021 7:57 pm
Posts: 1
Location: Edinburgh
try this to display the result

<?php
foreach ($scores as $_score) { ?>


<tr style="background:#172335;color:white;">
<td style="border:0;padding:5px;border-bottom: solid #263a58 1px;text-align:center;"><?=$_score['rank']?></td>
<td style="border:0;padding:5px;border-bottom: solid #263a58 1px;text-align:left;"> <?=$_score['name']?></td>
<td style="border:0;padding:5px;border-bottom: solid #263a58 1px;text-align:center;"><?=$_score['lost']?></td>
<td style="border:0;padding:5px;border-bottom: solid #263a58 1px;text-align:center;"><?= $_score['drawn']?></td>
<td style="border:0;padding:5px;border-bottom: solid #263a58 1px;text-align:center;"><?= $_score['won']?></td>
<td style="border:0;color:#e95842;padding:5px;border-bottom: solid #263a58 1px;text-align:center;"><?= $_score['points']?></td>
</tr>



<?php
}

?>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 57 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2016 phpBB Group