cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-444391%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ESimbolo%20del%20diametro%20SQL%20Insert%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-444391%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECIAO%2C%3C%2FP%3E%3CP%3EHo%20il%20simbolo%20del%20diametro%20%E2%8C%80%20come%20carattere%20in%20una%20colonna%20in%20una%20tabella%20DB%20(%C3%A8%20stato%20creato%20con%20Excel%20ma%20%C3%A8%20complicato%20impedire%20di%20digitare%20il%20simbolo%20perch%C3%A9%20molte%20persone%20ci%20lavorano%20e%20ci%20sono%20dati%20storici%20che%20non%20voglio%20cambiare%20...).%20La%20query%20JMP%20(tramite%20JSL)%20importa%20correttamente%20il%20simbolo.%20Ma%20quando%20voglio%20reinserire%20il%20simbolo%20in%20una%20tabella%20DB%2C%20esporta%20un%3F%20invece%20della%20%E2%8C%80.%20C'%C3%A8%20un%20modo%20per%20inserire%20correttamente%20il%20simbolo%3F%3C%2FP%3E%3CP%3EGrazie%2C%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edbc%20%3D%20Create%20Database%20Connection(%20%22CONNECTION%22%20)%3B%0Asql%20%3D%20Eval%20Insert(%22%0AINSERT%20INTO%20DB.DATATABLE%0A(COLUMN)%20%0AVALUES%20('%E2%8C%80')%0A%22)%3B%0AExecute%20SQL(%20dbc%2C%20sql%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-444391%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAccesso%20ai%20dati%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPersonalizzazione%20di%20massa%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Efinestre%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-444542%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20simbolo%20del%20diametro%20SQL%20Insert%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-444542%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EQuesto%20%C3%A8%20tutto.%20A%20volte%20%C3%A8%20molto%20semplice.%20Grazie%20molto!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-444411%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20simbolo%20del%20diametro%20SQL%20Insert%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-444411%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E(non%20testato...non%20sono%20un%20utente%20frequente%20di%20SQL...)%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F10965589%2Funicode-data-type-in-sql%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F10965589%2Funicode-data-type-in-sql%3C%2FA%3E%20suggerisce%20di%20utilizzare%3C%2FP%3E%0A%3CPRE%3EVALUES(N'%E2%8C%80')%3C%2FPRE%3E%0A%3CP%3Ema%20%C3%A8%20probabilmente%20specifico%20del%20fornitore%20e%20dipende%20dal%20fatto%20che%20il%20campo%20nel%20database%20sia%20Nchar%20o%20Nvarchar%20piuttosto%20che%20char%20o%20varchar.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
TWE
TWE
Level III

Diameter symbol SQL Insert

Hi,

I have the diameter symbol ⌀ as a char in a column in a DB table (it was created with Excel but it is complicated to prevent typing in the symbol because many people are working with that and there are historical data which I dont want to change...). The JMP Query (via JSL) imports the symbol correctly. But when I want to insert the symbol back into a DB table, it exports an ? instead of the ⌀. Is there any way to insert the symbol correctly?

Thanks,

dbc = Create Database Connection( "CONNECTION" );
sql = Eval Insert("
INSERT INTO DB.DATATABLE
(COLUMN) 
VALUES ('⌀')
");
Execute SQL( dbc, sql );

 

1 ACCEPTED SOLUTION

Accepted Solutions
Craige_Hales
Super User

Re: Diameter symbol SQL Insert

(untested...I'm not a frequent user of SQL...)

https://stackoverflow.com/questions/10965589/unicode-data-type-in-sql  suggests using

VALUES(N'⌀')

but it is probably vendor specific and depends on the field in the database being Nchar or Nvarchar rather than char or varchar.

Craige

View solution in original post

2 REPLIES 2
Craige_Hales
Super User

Re: Diameter symbol SQL Insert

(untested...I'm not a frequent user of SQL...)

https://stackoverflow.com/questions/10965589/unicode-data-type-in-sql  suggests using

VALUES(N'⌀')

but it is probably vendor specific and depends on the field in the database being Nchar or Nvarchar rather than char or varchar.

Craige
TWE
TWE
Level III

Re: Diameter symbol SQL Insert

That's it. Sometimes it is very simple. Many Thanks!

Recommended Articles