Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Recognize the first character of column then insert that value to specfic asp:menu

$
0
0

I've this table menu with which I want to save the data in a specific div

when I press save. the query must recognize or read  the first later of primary key like

if its 101. It reads first letter 1 and than enters that value in a specific div

here is the table

I know I have to write the inner query but how please helps

First recognize using SUBSTRING and than insert that in to specific asp:menu

menuCode is the colums that it must read

CREATE TABLE [dbo].[tblMenu]( [menuCode] [varchar](150) NOT NULL Primary key, [moduleCode] [varchar](150) NULL, [menuName] [varchar](150) NULL, [menuSource] [nvarchar](500) NULL, [active] [bit] NULL, [ParentCode] AS moduleCode + '-' + menuCode, )



Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>