You want to import your sales orders from a comma delimited file into a SQL Server or MSDE table called orders. The file looks like this:
345,John Doe, 400
346,Mark Smith,450
347,Robert,400
Run the following SQL command in Beekeeper Studio, SQL Server Management Studio, or any SQL client. Replace lower case text with your own:
BULK INSERT [orders]
FROM 'c:orders.csv'
WITH (FIELDTERMINATOR = ',')
Result (order table):
| OrderID | Name | Price |
|---|---|---|
| 345 | John Doe | 400 |
| 346 | Mark Smith | 450 |
| 347 | Robert | 400 |
Make sure the field terminator (‘,’) in this example is not part of any actual value. The field Name for instance cannot be ‘Doe, John’ since the ‘,’ would be considered as a field terminator.
The table has to be similar in format to the file (same number of fields and same data type.)
Το Beekeeper Studio Είναι Ένα Δωρεάν & Ανοιχτού Κώδικα GUI Βάσης Δεδομένων
Το καλύτερο εργαλείο SQL query & editor που έχω χρησιμοποιήσει. Παρέχει όλα όσα χρειάζομαι για να διαχειριστώ τη βάση δεδομένων μου. - ⭐⭐⭐⭐⭐ Mit
Το Beekeeper Studio είναι γρήγορο, διαισθητικό και εύκολο στη χρήση. Το Beekeeper υποστηρίζει πολλές βάσεις δεδομένων και λειτουργεί εξαιρετικά σε Windows, Mac και Linux.
Τι Λένε Οι Χρήστες Για Το Beekeeper Studio
"Το Beekeeper Studio αντικατέστησε εντελώς την παλιά μου ροή εργασίας SQL. Είναι γρήγορο, διαισθητικό και κάνει τη δουλειά με βάσεις δεδομένων απολαυστική ξανά."
"Έχω δοκιμάσει πολλά GUIs βάσεων δεδομένων, αλλά το Beekeeper βρίσκει την τέλεια ισορροπία μεταξύ χαρακτηριστικών και απλότητας. Απλά δουλεύει."